Skip to contentSkip to conversation

driver/fsl_ifc: Add a function to finalize CS0 address binding

PATCH New York Sun 1 participant 2 messages Mar 19, 2014 – Apr 23, 2014 Char and misc drivers

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/1 driver/fsl_ifc: Add a function to finalize CS0 address binding

For fsl-lsch3 NOR flash boot, IFC CS0 needs to be binded with address within 32-bit at fist. After u-boot relocates to DDR, CS0 can be binded to higher address to support large space.

CC Prabhakar Kushwaha <[email protected]>
---
 drivers/misc/fsl_ifc.c |    7 +++++++
 include/fsl_ifc.h      |    1 +
 2 files changed, 8 insertions(+)
drivers/misc/fsl_ifc.c +7 -0
index be61973..3902e9f 100644
@@ -162,3 +162,10 @@ void init_early_memctl_regs(void)
 	set_ifc_csor(IFC_CS7, CONFIG_SYS_CSOR7);
 #endif
 }
+
+void init_final_memctl_regs(void)
+{
+#ifdef CONFIG_SYS_CSPR0_FINAL
+	set_ifc_cspr(IFC_CS0, CONFIG_SYS_CSPR0_FINAL);
+#endif
+}
include/fsl_ifc.h +1 -0
index 58a6efd..630e4b4 100644
@@ -784,6 +784,7 @@ enum ifc_nand_fir_opcodes {
 
 extern void print_ifc_regs(void);
 extern void init_early_memctl_regs(void);
+void init_final_memctl_regs(void);
 
 #define IFC_BASE_ADDR ((struct fsl_ifc *)CONFIG_SYS_IFC_ADDR)
 
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 driver/fsl_ifc: Add a function to finalize CS0 address binding

Quoted 7 lines · York Sun

For fsl-lsch3 NOR flash boot, IFC CS0 needs to be binded with address within 32-bit at fist. After u-boot relocates to DDR, CS0 can be binded to higher address to support large space.

CC Prabhakar Kushwaha <[email protected]>

---

Applied to u-boot-mpc85xx/master.

York