The board_early_init_f() is empty, remove it, and instead disable
CONFIG_BOARD_EARLY_INIT_F configuration option to prevent the core
from calling board_early_init_f().

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 board/renesas/common/gen5-common.c | 5 -----
 configs/renesas_rcar5.config       | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/board/renesas/common/gen5-common.c 
b/board/renesas/common/gen5-common.c
index 51bab2aa19e..1d7e7d2ab15 100644
--- a/board/renesas/common/gen5-common.c
+++ b/board/renesas/common/gen5-common.c
@@ -25,11 +25,6 @@ static void init_gic_v3(void)
        writel(0xffffffff, GICR_SGI_BASE + GICR_IGROUPR0);
 }
 
-int board_early_init_f(void)
-{
-       return 0;
-}
-
 int board_init(void)
 {
        /* Allow WDT reset */
diff --git a/configs/renesas_rcar5.config b/configs/renesas_rcar5.config
index fbf158dfdb3..14fbe68655c 100644
--- a/configs/renesas_rcar5.config
+++ b/configs/renesas_rcar5.config
@@ -6,6 +6,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_USE_BOOTCOMMAND=y
 
+# CONFIG_BOARD_EARLY_INIT_F is not set
 CONFIG_BOOTARGS="root=/dev/nfs rw nfsroot=192.168.0.1:/export/rfs 
ip=192.168.0.20"
 CONFIG_CMD_MMC=y
 CONFIG_DM_ETH_PHY=y
-- 
2.53.0

Reply via email to