mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
board: starfive: Rename spl_soc_init() to spl_dram_init()
Rename spl_soc_init() to spl_dram_init() because the generic function name does not reflect what the function actually does. Also spl_dram_init() is commonly used for dram initialization and should be called from board_init_f(). Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
d6c81b87e6
commit
19b762cf83
@ -28,7 +28,7 @@ static bool check_ddr_size(phys_size_t size)
|
||||
}
|
||||
}
|
||||
|
||||
int spl_soc_init(void)
|
||||
int spl_dram_init(void)
|
||||
{
|
||||
int ret;
|
||||
struct udevice *dev;
|
||||
|
@ -7,6 +7,6 @@
|
||||
#ifndef _SPL_STARFIVE_H
|
||||
#define _SPL_STARFIVE_H
|
||||
|
||||
int spl_soc_init(void);
|
||||
int spl_dram_init(void);
|
||||
|
||||
#endif /* _SPL_STARFIVE_H */
|
||||
|
@ -285,9 +285,9 @@ int spl_board_init_f(void)
|
||||
|
||||
jh7110_jtag_init();
|
||||
|
||||
ret = spl_soc_init();
|
||||
ret = spl_dram_init();
|
||||
if (ret) {
|
||||
debug("JH7110 SPL init failed: %d\n", ret);
|
||||
debug("JH7110 DRAM init failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user