summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-09-18 13:17:57 +0200
committerPrzemyslaw Marczak <p.marczak@samsung.com>2015-05-18 11:54:53 +0200
commit47ec51afc21997f6eebad16a0e031f2d31c89e73 (patch)
tree4f04a142ea537dc68b8421a763093c9441d3e99a
parentffa958b2f05704cb643c23600a7287124408437c (diff)
downloadu-boot-47ec51afc21997f6eebad16a0e031f2d31c89e73.tar.gz
u-boot-47ec51afc21997f6eebad16a0e031f2d31c89e73.tar.bz2
u-boot-47ec51afc21997f6eebad16a0e031f2d31c89e73.zip
samsung:board: check board type before init exynos fb
For CONFIG_OF_MULTI some boards doesn't use frame buffer, so the board type is now checked before the fb configuration. Change-Id: Ide9ba4893b89ccc84ea84482324dd39ed8fbd48c Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
-rw-r--r--board/samsung/common/board.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 103381f4b7..d52a8af4fe 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -187,13 +187,19 @@ int board_early_init_f(void)
* FB memory at a very early stage. So, we need to fill panel_info.vl_col,
* panel_info.vl_row and panel_info.vl_bpix before lcd_setmem() is called.
*/
+#ifdef CONFIG_OF_MULTI
+ if (board_is_trats2())
+ err = exynos_lcd_early_init(gd->fdt_blob);
+ else
+ err = 0;
+#else
err = exynos_lcd_early_init(gd->fdt_blob);
+#endif
if (err) {
debug("LCD early init failed\n");
return err;
}
#endif
-
return exynos_early_init_f();
}
#endif