summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-10-19 16:39:00 +0800
committerLily Zhang <r58066@freescale.com>2010-10-27 15:57:06 +0800
commit0a64be1b005d7744e96cd8366db7ea33b87ae18d (patch)
tree0d27eba105cca3b5f541eee5aec63e1170174641
parent0e8faf19beac04e3041452a9675936cbd3a27e3e (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> (cherry picked from commit 2c6f21732a3e1940d9014406547e2f880b465ef9)
-rw-r--r--drivers/video/mxc/ldb.c20
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
*
*/