summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/socfpga/s_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/armv7/socfpga/s_init.c')
-rw-r--r--arch/arm/cpu/armv7/socfpga/s_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/socfpga/s_init.c b/arch/arm/cpu/armv7/socfpga/s_init.c
index 0ae38dab6e..055711ad59 100644
--- a/arch/arm/cpu/armv7/socfpga/s_init.c
+++ b/arch/arm/cpu/armv7/socfpga/s_init.c
@@ -48,7 +48,12 @@ void s_init(void)
* SPL : configure the remap (L3 NIC-301 GPV) so the on-chip RAM at
* lower memory instead ROM.
*/
+#if (CONFIG_PRELOADER_EXE_ON_FPGA == 1)
+ /* if we run from FPGA, ensure we don't shutdown the bridge */
+ writel(0x9, SOCFPGA_L3REGS_ADDRESS);
+#else
writel(0x1, SOCFPGA_L3REGS_ADDRESS);
+#endif /* CONFIG_PRELOADER_EXE_ON_FPGA */
#else
/*
* U-Boot : configure the remap (L3 NIC-301 GPV)