[U-Boot] [PATCH 5/9] arm: mvebu: fix ahci mbus config in SPL

Chris Packham judge.packham at gmail.com
Fri May 17 07:49:23 UTC 2019


On Thu, May 16, 2019 at 10:09 PM Baruch Siach <baruch at tkos.co.il> wrote:
>
> SPL does not initialize mbus_dram_info. Don't change the ahci mbus
> settings of the ROM. This allows the ahci to work in SPL.
>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

Reviewed-by: Chris Packham <judge.packham at gmail.com>

> ---
>  arch/arm/mach-mvebu/cpu.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
> index f09e7b10e935..f4b7a4fa8010 100644
> --- a/arch/arm/mach-mvebu/cpu.c
> +++ b/arch/arm/mach-mvebu/cpu.c
> @@ -542,6 +542,10 @@ static void ahci_mvebu_mbus_config(void __iomem *base)
>         const struct mbus_dram_target_info *dram;
>         int i;
>
> +       /* mbus is not initialized in SPL; keep the ROM settings */
> +       if (IS_ENABLED(CONFIG_SPL_BUILD))
> +               return;
> +
>         dram = mvebu_mbus_dram_info();
>
>         for (i = 0; i < 4; i++) {
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list