summaryrefslogtreecommitdiff
path: root/drivers/video/mvf_dcu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/mvf_dcu.c')
-rw-r--r--drivers/video/mvf_dcu.c36
1 files changed, 27 insertions, 9 deletions
diff --git a/drivers/video/mvf_dcu.c b/drivers/video/mvf_dcu.c
index c10c07ea7dc8..0df5d053a62f 100644
--- a/drivers/video/mvf_dcu.c
+++ b/drivers/video/mvf_dcu.c
@@ -37,15 +37,17 @@
#define DRIVER_NAME "mvf-dcu"
static struct fb_videomode __devinitdata mvf_dcu_default_mode = {
- .xres = 480,
- .yres = 272,
- .left_margin = 2,
- .right_margin = 2,
- .upper_margin = 1,
- .lower_margin = 1,
- .hsync_len = 41,
+ .pixclock = 31250,
+ .xres = 800,
+ .yres = 480,
+ .left_margin = 42,
+ .right_margin = 86,
+ .upper_margin = 10,
+ .lower_margin = 33,
+ .hsync_len = 128,
.vsync_len = 2,
- .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+ .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT |
+ FB_SYNC_HOR_HIGH_ACT,
.vmode = FB_VMODE_NONINTERLACED,
};
@@ -63,6 +65,22 @@ static struct fb_videomode __devinitdata mvf_dcu_mode_db[] = {
.sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
.vmode = FB_VMODE_NONINTERLACED,
},
+ {
+ .name = "pm070wl4",
+ .pixclock = 31250,
+ .xres = 800,
+ .yres = 480,
+ .left_margin = 42,
+ .right_margin = 86,
+ .upper_margin = 10,
+ .lower_margin = 33,
+ .hsync_len = 128,
+ .vsync_len = 2,
+ .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT |
+ FB_SYNC_HOR_HIGH_ACT,
+ .vmode = FB_VMODE_NONINTERLACED,
+ },
+
};
static DEFINE_SPINLOCK(dcu_lock);
@@ -1005,7 +1023,7 @@ static int __devinit mvf_dcu_probe(struct platform_device *pdev)
gpio_request_one(DCU_LCD_ENABLE_PIN, GPIOF_OUT_INIT_LOW, "DCU");
msleep(2);
- gpio_set_value(DCU_LCD_ENABLE_PIN, 1);
+ gpio_set_value(DCU_LCD_ENABLE_PIN, 0);
writel(0x20000000, MVF_IO_ADDRESS(MVF_TCON0_BASE_ADDR));