mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fdt: Rename setup_fdt() and make it prepare also
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>
This commit is contained in:
parent
b45122fdf5
commit
0879361fd3
3 changed files with 4 additions and 7 deletions
|
@ -762,7 +762,7 @@ static init_fnc_t init_sequence_f[] = {
|
|||
#endif
|
||||
setup_mon_len,
|
||||
#ifdef CONFIG_OF_CONTROL
|
||||
setup_fdt,
|
||||
fdtdec_setup,
|
||||
#endif
|
||||
#ifdef CONFIG_TRACE
|
||||
trace_early_init,
|
||||
|
@ -774,9 +774,6 @@ static init_fnc_t init_sequence_f[] = {
|
|||
#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)
|
||||
|
|
|
@ -797,6 +797,6 @@ int fdtdec_decode_memory_region(const void *blob, int node,
|
|||
/**
|
||||
* Set up the device tree ready for use
|
||||
*/
|
||||
int setup_fdt(void);
|
||||
int fdtdec_setup(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1039,7 +1039,7 @@ int fdtdec_decode_memory_region(const void *blob, int config_node,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int setup_fdt(void)
|
||||
int fdtdec_setup(void)
|
||||
{
|
||||
#ifdef CONFIG_OF_CONTROL
|
||||
# ifdef CONFIG_OF_EMBED
|
||||
|
@ -1065,7 +1065,7 @@ int setup_fdt(void)
|
|||
(uintptr_t)gd->fdt_blob);
|
||||
# endif
|
||||
#endif
|
||||
return 0;
|
||||
return fdtdec_prepare_fdt();
|
||||
}
|
||||
|
||||
#endif /* !USE_HOSTCC */
|
||||
|
|
Loading…
Reference in a new issue