diff options
| author | Lukas Funke <[email protected]> | 2024-04-24 09:43:38 +0200 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2024-05-02 00:01:18 +0800 |
| commit | d6c81b87e6c15d23815ffc37241795de4bdb71be (patch) | |
| tree | 0048e724d89e054972891d8270eb105ad1e95119 /board/sifive | |
| parent | 849e3fd8f698a3e12b5536d18d261e3fff87db33 (diff) | |
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 <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Diffstat (limited to 'board/sifive')
| -rw-r--r-- | board/sifive/unleashed/spl.c | 4 | ||||
| -rw-r--r-- | board/sifive/unmatched/spl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/board/sifive/unleashed/spl.c b/board/sifive/unleashed/spl.c index fe27316b2d9..9df9c68604e 100644 --- a/board/sifive/unleashed/spl.c +++ b/board/sifive/unleashed/spl.c @@ -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; } diff --git a/board/sifive/unmatched/spl.c b/board/sifive/unmatched/spl.c index e69bed9d99d..6fc1d809540 100644 --- a/board/sifive/unmatched/spl.c +++ b/board/sifive/unmatched/spl.c @@ -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; } |
