From 593aa8a95aee2fa6040689497f7a8e93531816d4 Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Thu, 26 Dec 2019 14:47:15 +0530 Subject: [PATCH] ipq5018: Enable Early and Late init Change-Id: I102678796a578945a7e7f2ccd573413419c482c2 Signed-off-by: Vandhiadevan Karunamoorthy --- board/qca/arm/ipq5018/ipq5018.c | 5 +++++ include/configs/ipq5018.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/board/qca/arm/ipq5018/ipq5018.c b/board/qca/arm/ipq5018/ipq5018.c index f06276c593..39418f9ba1 100644 --- a/board/qca/arm/ipq5018/ipq5018.c +++ b/board/qca/arm/ipq5018/ipq5018.c @@ -588,3 +588,8 @@ int board_eth_init(bd_t *bis) return status; } +void set_flash_secondary_type(qca_smem_flash_info_t *smem) +{ + return; +}; + diff --git a/include/configs/ipq5018.h b/include/configs/ipq5018.h index 96013db3fd..5e2c35be8c 100644 --- a/include/configs/ipq5018.h +++ b/include/configs/ipq5018.h @@ -26,6 +26,15 @@ #define CONFIG_CMD_CACHE #define CONFIG_IPQ_NO_RELOC +#define CONFIG_SYS_VSNPRINTF + +/* +* Enable Early and Late init +* This config needs for secondary boot and to set BADOFF5E +*/ +#define CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_BOARD_LATE_INIT + #define CONFIG_IPQ5018_UART #define CONFIG_NR_DRAM_BANKS 1 #define CONFIG_SKIP_LOWLEVEL_INIT