[PATCH v1 2/3] board: sifive: Call spl_dram_init() for DRAM initialization

E Shattow lucent at gmail.com
Mon Apr 22 17:03:47 CEST 2024


On Mon, Apr 22, 2024 at 6:16 AM <lukas.funke-oss at weidmueller.com> wrote:
>
> From: Lukas Funke <lukas.funke at weidmueller.com>
>
> Call spl_dram_init() since this is commonly used for dram initialization
> in u-boot.
>
> Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
> ---
>
>  board/sifive/unleashed/spl.c | 4 ++--
>  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 fe27316b2d..d6725a0e0e 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 e69bed9d99..500f484844 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;
>         }
>
> --
> 2.30.2
>

Acronym DRAM should be all capitalized letters in strings.

-E


More information about the U-Boot mailing list