mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
board: sifive: 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: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
849e3fd8f6
commit
d6c81b87e6
6 changed files with 8 additions and 8 deletions
|
@ -7,7 +7,7 @@
|
|||
#include <dm.h>
|
||||
#include <log.h>
|
||||
|
||||
int spl_soc_init(void)
|
||||
int spl_dram_init(void)
|
||||
{
|
||||
int ret;
|
||||
struct udevice *dev;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#define CSR_U74_FEATURE_DISABLE 0x7c1
|
||||
|
||||
int spl_soc_init(void)
|
||||
int spl_dram_init(void)
|
||||
{
|
||||
int ret;
|
||||
struct udevice *dev;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
#ifndef _SPL_SIFIVE_H
|
||||
#define _SPL_SIFIVE_H
|
||||
|
||||
int spl_soc_init(void);
|
||||
int spl_dram_init(void);
|
||||
|
||||
#endif /* _SPL_SIFIVE_H */
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
#ifndef _SPL_SIFIVE_H
|
||||
#define _SPL_SIFIVE_H
|
||||
|
||||
int spl_soc_init(void);
|
||||
int spl_dram_init(void);
|
||||
|
||||
#endif /* _SPL_SIFIVE_H */
|
||||
|
|
|
@ -27,9 +27,9 @@ int spl_board_init_f(void)
|
|||
{
|
||||
int ret;
|
||||
|
||||
ret = spl_soc_init();
|
||||
ret = spl_dram_init();
|
||||
if (ret) {
|
||||
debug("FU540 SPL init failed: %d\n", ret);
|
||||
debug("FU540 DRAM init failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -134,9 +134,9 @@ int spl_board_init_f(void)
|
|||
{
|
||||
int ret;
|
||||
|
||||
ret = spl_soc_init();
|
||||
ret = spl_dram_init();
|
||||
if (ret) {
|
||||
debug("HiFive Unmatched FU740 SPL init failed: %d\n", ret);
|
||||
debug("HiFive Unmatched FU740 DRAM init failed: %d\n", ret);
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue