]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: starfive: Rename spl_soc_init() to spl_dram_init()
authorLukas Funke <lukas.funke@weidmueller.com>
Wed, 24 Apr 2024 07:43:39 +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: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/riscv/cpu/jh7110/spl.c
arch/riscv/include/asm/arch-jh7110/spl.h
board/starfive/visionfive2/spl.c

index 6bdf8b9c72f0892217beb72f7f270d7c34cc60ad..87aaf86524661e9f690ad20f29151bffdbc0944e 100644 (file)
@@ -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;
index 23ce8871b3a7d91bcf4672f711ee98430a129e4a..d73355bf35d3098c5841fa9c2404c3d86d015f32 100644 (file)
@@ -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 */
index 45848db6d8bf8b51a9658b00e28dca5cd2f2375c..ca61b5be227def8c1aa003f1dcda4575e560e153 100644 (file)
@@ -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;
        }