arm: socfpga: fix SPL on gen5 after moving to DM serial
[oweals/u-boot.git] / arch / arm / mach-socfpga / spl_gen5.c
index d6fe7d35af1766f6f734870820c8d468a347afda..9bdfaa3c1e1dfd7fe64b482362b9e39938b980ee 100644 (file)
@@ -86,6 +86,7 @@ void board_init_f(ulong dummy)
        const struct cm_config *cm_default_cfg = cm_get_default_config();
        unsigned long sdram_size;
        unsigned long reg;
+       int ret;
 
        /*
         * First C code to run. Clear fake OCRAM ECC first as SBE
@@ -152,6 +153,12 @@ void board_init_f(ulong dummy)
        /* unfreeze / thaw all IO banks */
        sys_mgr_frzctrl_thaw_req();
 
+       ret = spl_early_init();
+       if (ret) {
+               debug("spl_early_init() failed: %d\n", ret);
+               hang();
+       }
+
        /* enable console uart printing */
        preloader_console_init();