int board_early_init_f(void) { int err; #ifdef CONFIG_BOARD_TYPES set_board_type(); #endif err = board_uart_init(); if (err) { debug("UART init failed\n"); return err; } #ifdef CONFIG_SYS_I2C_INIT_BOARD board_i2c_init(gd->fdt_blob); #endif #if defined(CONFIG_EXYNOS_FB) /* * board_init_f(arch/arm/lib/board.c) calls lcd_setmem() which needs * panel_info.vl_col, panel_info.vl_row and panel_info.vl_bpix, * to reserve frame-buffer 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. */ err = exynos_lcd_early_init(gd->fdt_blob); if (err) { debug("LCD early init failed\n"); return err; } #endif return exynos_early_init_f(); }
int board_early_init_f(void) { int err; err = board_uart_init(); if (err) { debug("UART init failed\n"); return err; } #ifdef CONFIG_SYS_I2C_INIT_BOARD board_i2c_init(gd->fdt_blob); #endif return exynos_early_init_f(); }