board: sifive: Rename spl_soc_init() to spl_dram_init()
authorLukas Funke <lukas.funke@weidmueller.com>
Wed, 24 Apr 2024 07:43:38 +0000 (09:43 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 1 May 2024 16:01:18 +0000 (00:01 +0800)
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>
arch/riscv/cpu/fu540/spl.c
arch/riscv/cpu/fu740/spl.c
arch/riscv/include/asm/arch-fu540/spl.h
arch/riscv/include/asm/arch-fu740/spl.h
board/sifive/unleashed/spl.c
board/sifive/unmatched/spl.c

index 45657b7..cedb70b 100644 (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;
index c6816e9..16b307f 100644 (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;
index 4697279..519e7eb 100644 (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 */
index 15ad9e7..b327ac5 100644 (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 */
index fe27316..9df9c68 100644 (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;
        }
 
index e69bed9..6fc1d80 100644 (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;
        }