armv8: layerscape: spl: Initialize QSPI AHB for QSPI boot
authorYork Sun <york.sun@nxp.com>
Tue, 26 Jun 2018 21:48:28 +0000 (14:48 -0700)
committerYork Sun <york.sun@nxp.com>
Thu, 26 Jul 2018 17:59:35 +0000 (10:59 -0700)
To get full access of QSPI space, initialize AHB interface.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c
arch/arm/include/asm/arch-fsl-layerscape/soc.h

index f1d6fd63b995f56a177a4937d892181d82effc3c..3bb6e5b3db9a1f18bc9579cd7db5386e20bfa1cd 100644 (file)
@@ -11,6 +11,7 @@
 #include <fsl_csu.h>
 #include <asm/arch/fdt.h>
 #include <asm/arch/ppa.h>
+#include <asm/arch/soc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -102,6 +103,9 @@ void board_init_f(ulong dummy)
        gd->arch.tlb_addr = (gd->ram_top - gd->arch.tlb_size) & ~(0x10000 - 1);
        gd->arch.tlb_allocated = gd->arch.tlb_addr;
 #endif /* CONFIG_SPL_FSL_LS_PPA */
+#if defined(CONFIG_QSPI_AHB_INIT) && defined(CONFIG_QSPI_BOOT)
+       qspi_ahb_init();
+#endif
 }
 
 #ifdef CONFIG_SPL_OS_BOOT
index 6e3a420f48668e9d4939d028e4f87d9d10a85e1d..61b6e4bf07ee5b0fb8ad73339fd46c442cb87e57 100644 (file)
@@ -98,6 +98,9 @@ int board_setup_core_volt(u32 vdd);
 void init_pfe_scfg_dcfg_regs(void);
 #endif
 #endif
+#ifdef CONFIG_QSPI_AHB_INIT
+int qspi_ahb_init(void);
+#endif
 
 void cpu_name(char *name);
 #ifdef CONFIG_SYS_FSL_ERRATUM_A009635