mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
arm: mvebu: fix ahci mbus config in SPL
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@tkos.co.il> Reviewed-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
760ef309cb
commit
f0aa125477
1 changed files with 4 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue