samsung:board: check board type before init exynos fb
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Thu, 18 Sep 2014 11:17:57 +0000 (13:17 +0200)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 4 Dec 2015 15:31:02 +0000 (16:31 +0100)
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>
board/samsung/common/board.c

index d0317896c004b7777bc347c6177d37e2ff776d7d..3fb078f6edaace4b8257535b00d53c69a07cec19 100644 (file)
@@ -190,7 +190,14 @@ int board_early_init_f(void)
         * 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;