Commit 1ac0d52a9bb2a20e07542ca54c526e35b0f2ffca

Authored by Otavio Salvador
Committed by Kever Yang
1 parent af84b3327a

elgin-rv1108: Use rk_board_late_init() for GPIO settings

Since commit 8e9a8d0d0c8c ("rockchip: elgin-rv1108: use board_early_init_f
for per-boar init") the function that configure the board GPIOs is no
longer called since CONFIG_BOARD_EARLY_INIT_F=y is not selected.

These GPIOs do not need to be configured in such early stagem, so change it
to rk_board_late_init() and also select CONFIG_BOARD_LATE_INIT=y
to fix the regression.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

board/elgin/elgin_rv1108/elgin_rv1108.c
... ... @@ -49,7 +49,7 @@
49 49  
50 50 #define MODEM_ENABLE_GPIO 111
51 51  
52   -int board_early_init_f(void)
  52 +int rk_board_late_init(void)
53 53 {
54 54 gpio_request(MODEM_ENABLE_GPIO, "modem_enable");
55 55 gpio_direction_output(MODEM_ENABLE_GPIO, 0);
configs/elgin-rv1108_defconfig
... ... @@ -10,6 +10,7 @@
10 10 CONFIG_DEBUG_UART=y
11 11 # CONFIG_USE_BOOTCOMMAND is not set
12 12 CONFIG_DEFAULT_FDT_FILE="rv1108-elgin-r1.dtb"
  13 +CONFIG_BOARD_LATE_INIT=y
13 14 # CONFIG_DISPLAY_CPUINFO is not set
14 15 CONFIG_DISPLAY_BOARDINFO_LATE=y
15 16 CONFIG_CMD_GPIO=y