From 8b71576f3842bee0559b3865ed0b129c417f27c9 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Sun, 12 Sep 2021 17:32:57 +0300 Subject: mx7ulp_com: add support for SPL Add EA iMX7ULP COM board support for building SPL. Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov --- board/ea/mx7ulp_com/mx7ulp_com.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'board/ea/mx7ulp_com/mx7ulp_com.c') diff --git a/board/ea/mx7ulp_com/mx7ulp_com.c b/board/ea/mx7ulp_com/mx7ulp_com.c index 7fce75ade9d..cd9591a9e32 100644 --- a/board/ea/mx7ulp_com/mx7ulp_com.c +++ b/board/ea/mx7ulp_com/mx7ulp_com.c @@ -52,3 +52,29 @@ int board_init(void) return 0; } + +#ifdef CONFIG_SPL_BUILD +#include + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (!strcmp(name, "imx7ulp-com")) + return 0; + + return -1; +} +#endif + +void spl_board_init(void) +{ + preloader_console_init(); +} + +void board_init_f(ulong dummy) +{ + arch_cpu_init(); + + board_early_init_f(); +} +#endif -- cgit v1.2.3