diff options
author | Liu Ying <b17645@freescale.com> | 2010-10-19 16:39:00 +0800 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2011-01-19 11:50:14 -0500 |
commit | c394dc0fbfa5371ccb2411e36c09fa9b8448ad4b (patch) | |
tree | bfc54891ed1ded5bf305fe91ea9c10c7692a1a8b | |
parent | a265c37773aeeaf1d674f0d50d33c70a6db7da5f (diff) |
ENGR00132776 LDB:Add default 1080P split mode for DI1
Though users can specify 'ldb=xxx' to enable 1080P LVDS
panel when using DI1, it is not easy for them to set it
correctly. This patch will add the default LDB setting
for this case and correct the comment of ldb_setup()
function.
Signed-off-by: Liu Ying <b17645@freescale.com>
-rw-r--r-- | drivers/video/mxc/ldb.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/drivers/video/mxc/ldb.c b/drivers/video/mxc/ldb.c index 7d8cba479385..9e590e80bdd0 100644 --- a/drivers/video/mxc/ldb.c +++ b/drivers/video/mxc/ldb.c @@ -828,17 +828,25 @@ static int ldb_probe(struct platform_device *pdev) } /* * Default ldb mode: - * 1080p: DI0 split, SPWG + * 1080p: DI0 split, SPWG or DI1 split, SPWG * others: single, SPWG */ if (g_boot_cmd == false) { - ldb.chan_bit_map[0] = LDB_BIT_MAP_SPWG; if (fb_mode_is_equal(mode, &mxcfb_ldb_modedb[0])) { - ldb.chan_mode_opt = LDB_SPL_DI0; + if (strcmp(ldb.fbi[i]->fix.id, + "DISP3 BG") == 0) { + ldb.chan_mode_opt = LDB_SPL_DI0; + dev_warn(g_ldb_dev, + "default di0 split mode\n"); + } else if (strcmp(ldb.fbi[i]->fix.id, + "DISP3 BG - DI1") == 0) { + ldb.chan_mode_opt = LDB_SPL_DI1; + dev_warn(g_ldb_dev, + "default di1 split mode\n"); + } ldb.chan_bit_map[0] = LDB_BIT_MAP_SPWG; ldb.chan_bit_map[1] = LDB_BIT_MAP_SPWG; find_1080p = true; - dev_warn(g_ldb_dev, "default split mode\n"); } else if (!find_1080p) { if (strcmp(ldb.fbi[i]->fix.id, "DISP3 BG") == 0) { @@ -1362,9 +1370,9 @@ static struct platform_driver mxcldb_driver = { }; /* - * Parse user specified options (`lvds=') + * Parse user specified options (`ldb=') * example: - * lvds=single(separate, dual or split),(di=0 or di=1), + * ldb=single(separate, dual or split),(di=0 or di=1), * ch0_map=SPWG or JEIDA,ch1_map=SPWG or JEIDA * */ |