@@ -32,6 +32,19 @@ void board_init_f(ulong dummy)
#endif
}
+#ifdef CONFIG_SPL_BOARD_INIT
+void spl_board_init(void)
+{
+ struct udevice *dev;
+
+ if (uclass_get_device_by_driver(UCLASS_MISC,
+ DM_GET_DRIVER(aspeed_hace),
+ &dev)) {
+ debug("Warning: HACE initialization failure\n");
+ }
+}
+#endif
+
u32 spl_boot_device(void)
{
switch (aspeed_bootmode()) {
@@ -48,7 +48,7 @@ CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y
CONFIG_DISPLAY_BOARDINFO_LATE=y
CONFIG_ARCH_EARLY_INIT_R=y
CONFIG_BOARD_EARLY_INIT_F=y
-# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_BOARD_INIT=y
# CONFIG_SPL_LEGACY_IMAGE_SUPPORT is not set
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_SPL_STACK_R=y
Look up the driver by name so we don't cause a link failure when building without the HACE driver built in. Signed-off-by: Joel Stanley <joel@jms.id.au> --- arch/arm/mach-aspeed/ast2600/spl.c | 13 +++++++++++++ configs/ast2600_openbmc_spl_emmc_defconfig | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-)