rockchip: elgin-rv1108: use board_early_init_f for per-boar init
authorKever Yang <kever.yang@rock-chips.com>
Mon, 22 Jul 2019 12:02:20 +0000 (20:02 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 29 Jul 2019 02:27:48 +0000 (10:27 +0800)
Use board_early_init_f() for per-board init operation and
use board_init() from common board file.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
board/elgin/elgin_rv1108/elgin_rv1108.c

index 0de1f4243ebd326de1a763e6b54320ba3b7b98a6..70a1245fa2d9697407fa5dd27887954f3a57e5e8 100644 (file)
@@ -50,7 +50,7 @@ int mach_cpu_init(void)
 
 #define MODEM_ENABLE_GPIO 111
 
-int board_init(void)
+int board_early_init_f(void)
 {
        gpio_request(MODEM_ENABLE_GPIO, "modem_enable");
        gpio_direction_output(MODEM_ENABLE_GPIO, 0);
@@ -58,6 +58,11 @@ int board_init(void)
        return 0;
 }
 
+int board_init(void)
+{
+       return 0;
+}
+
 int dram_init(void)
 {
        gd->ram_size = 0x8000000;