summaryrefslogtreecommitdiff
path: root/board/ea
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@foundries.io>2021-09-12 17:32:57 +0300
committerStefano Babic <sbabic@denx.de>2022-02-05 13:38:38 +0100
commit8b71576f3842bee0559b3865ed0b129c417f27c9 (patch)
treeaaeb9f6f078c3f0968989bd6c0b4530dc8a20bda /board/ea
parent498eedc0d47f8f194698fcb082fbdf4f81f90625 (diff)
mx7ulp_com: add support for SPL
Add EA iMX7ULP COM board support for building SPL. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Diffstat (limited to 'board/ea')
-rw-r--r--board/ea/mx7ulp_com/mx7ulp_com.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/board/ea/mx7ulp_com/mx7ulp_com.c b/board/ea/mx7ulp_com/mx7ulp_com.c
index 7fce75ade9..cd9591a9e3 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 <spl.h>
+
+#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