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:
Lukas Funke 2024-04-24 09:43:38 +02:00 committed by Leo Yu-Chi Liang
parent 849e3fd8f6
commit d6c81b87e6
6 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 */

View file

@ -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 */

View file

@ -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;
}

View file

@ -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;
}