There is little reason to split these two functions. Bring them together
which simplifies the init sequence.
Signed-off-by: Simon Glass <sjg@chromium.org>
#endif
setup_mon_len,
#ifdef CONFIG_OF_CONTROL
- setup_fdt,
+ fdtdec_setup,
#endif
#ifdef CONFIG_TRACE
trace_early_init,
#endif
arch_cpu_init, /* basic arch cpu dependent setup */
mark_bootstage,
-#ifdef CONFIG_OF_CONTROL
- fdtdec_check_fdt,
-#endif
initf_dm,
arch_cpu_init_dm,
#if defined(CONFIG_BOARD_EARLY_INIT_F)
/**
* Set up the device tree ready for use
*/
-int setup_fdt(void);
+int fdtdec_setup(void);
#endif
return 0;
}
-int setup_fdt(void)
+int fdtdec_setup(void)
{
#ifdef CONFIG_OF_CONTROL
# ifdef CONFIG_OF_EMBED
(uintptr_t)gd->fdt_blob);
# endif
#endif
- return 0;
+ return fdtdec_prepare_fdt();
}
#endif /* !USE_HOSTCC */