summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-05-16 19:28:04 -0700
committerEric Nelson <eric.nelson@boundarydevices.com>2013-09-03 14:09:30 -0700
commite354d31d5a93ad86cf3677ecfb304a8fbbe6c383 (patch)
tree22859b979aab3ccdbfe10b0c6e5fc35fdfafe86a
parentcd74e44f6cc40957e939ece1f5df7f0d575089d9 (diff)
ldb: add INNOLUX-WVGA panel
-rw-r--r--drivers/video/mxc/ldb.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/mxc/ldb.c b/drivers/video/mxc/ldb.c
index 8228173d8df1..7cbf5c3705f6 100644
--- a/drivers/video/mxc/ldb.c
+++ b/drivers/video/mxc/ldb.c
@@ -140,6 +140,15 @@ static struct fb_videomode ldb_modedb[] = {
.sync = 0,
.vmode = FB_VMODE_NONINTERLACED,
.flag = FB_MODE_IS_DETAILED,},
+ {
+ /* 800x480 @ 57 Hz , pixel clk @ 27MHz */
+ "INNOLUX-WVGA", 57, 800, 480, 25000,
+ .left_margin = 45, .right_margin = 1056 - 1 - 45 - 800,
+ .upper_margin = 22, .lower_margin = 635 - 1 - 22 - 480,
+ .hsync_len = 1, .vsync_len = 1,
+ .sync = 0,
+ .vmode = FB_VMODE_NONINTERLACED,
+ .flag = FB_MODE_IS_DETAILED,},
};
static int ldb_modedb_sz = ARRAY_SIZE(ldb_modedb);
@@ -740,6 +749,11 @@ static int ldb_disp_init(struct mxc_dispdrv_handle *disp,
struct fb_videomode m;
fb_var_to_videomode(&m, &setting->fbi->var);
pr_info("%s: ret=%d, %dx%d\n", __func__, ret, m.xres, m.yres);
+ pr_info("%s:r=%d, x=%d, y=%d, p=%d, l=%d, r=%d, upper=%d, lower=%d, h=%d, v=%d\n",
+ __func__, m.refresh, m.xres, m.yres, m.pixclock,
+ m.left_margin, m.right_margin,
+ m.upper_margin, m.lower_margin,
+ m.hsync_len, m.vsync_len);
fb_add_videomode(&m, &setting->fbi->modelist);
for (i = 0; i < ldb_modedb_sz; i++) {
if (!fb_mode_is_equal(&m, &ldb_modedb[i])) {