]> Git Repo - J-u-boot.git/commitdiff
arm: mvebu: fix ahci mbus config in SPL
authorBaruch Siach <[email protected]>
Thu, 16 May 2019 10:03:57 +0000 (13:03 +0300)
committerStefan Roese <[email protected]>
Thu, 11 Jul 2019 08:58:02 +0000 (10:58 +0200)
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 <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
arch/arm/mach-mvebu/cpu.c

index f09e7b10e935305a197b9f13640eed16339465ff..f4b7a4fa80108176784794cfab8d577c784a1f3c 100644 (file)
@@ -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++) {
This page took 0.037756 seconds and 4 git commands to generate.