diff mbox series

[U-Boot,1/2] armv8: layerscape: spl: Initialize QSPI AHB for QSPI boot

Message ID 1530049710-18039-1-git-send-email-york.sun@nxp.com
State Accepted
Commit 996060927540904b956513d087192f67b6419133
Delegated to: York Sun
Headers show
Series [U-Boot,1/2] armv8: layerscape: spl: Initialize QSPI AHB for QSPI boot | expand

Commit Message

York Sun June 26, 2018, 9:48 p.m. UTC
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        | 4 ++++
 arch/arm/include/asm/arch-fsl-layerscape/soc.h | 3 +++
 2 files changed, 7 insertions(+)

Comments

York Sun July 27, 2018, 3:40 p.m. UTC | #1
On 06/26/2018 02:49 PM, York Sun wrote:
> To get full access of QSPI space, initialize AHB interface.
> 
> Signed-off-by: York Sun <york.sun@nxp.com>
> ---

Applied to fsl-qoriq, awaiting upstream.

York
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
index f1d6fd6..3bb6e5b 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c
@@ -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
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/soc.h b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
index 9a219a6..8b51bc5 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/soc.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
@@ -130,6 +130,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