[U-Boot] [PATCH 23/24] rockchip: elgin-rv1108: use board_early_init_f for per-boar init

Kever Yang kever.yang at rock-chips.com
Mon Jul 22 12:02:20 UTC 2019


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 at rock-chips.com>
---

 board/elgin/elgin_rv1108/elgin_rv1108.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/board/elgin/elgin_rv1108/elgin_rv1108.c b/board/elgin/elgin_rv1108/elgin_rv1108.c
index 0de1f4243e..6f33f2ce6f 100644
--- a/board/elgin/elgin_rv1108/elgin_rv1108.c
+++ b/board/elgin/elgin_rv1108/elgin_rv1108.c
@@ -50,11 +50,14 @@ 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);
+}
 
+int board_init(void)
+{
 	return 0;
 }
 
-- 
2.17.1



More information about the U-Boot mailing list