Commit e77224e2d8a2ec5accbedc70c87f171115a3e2b2

Authored by York Sun
1 parent 6b50f62cc4

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.

Signed-off-by: York Sun <yorksun@freescale.com>
CC: Prabhakar Kushwaha <prabhakar@freescale.com>

Showing 2 changed files with 8 additions and 0 deletions Side-by-side Diff

drivers/misc/fsl_ifc.c
... ... @@ -162,4 +162,11 @@
162 162 set_ifc_csor(IFC_CS7, CONFIG_SYS_CSOR7);
163 163 #endif
164 164 }
  165 +
  166 +void init_final_memctl_regs(void)
  167 +{
  168 +#ifdef CONFIG_SYS_CSPR0_FINAL
  169 + set_ifc_cspr(IFC_CS0, CONFIG_SYS_CSPR0_FINAL);
  170 +#endif
  171 +}
... ... @@ -784,6 +784,7 @@
784 784  
785 785 extern void print_ifc_regs(void);
786 786 extern void init_early_memctl_regs(void);
  787 +void init_final_memctl_regs(void);
787 788  
788 789 #define IFC_BASE_ADDR ((struct fsl_ifc *)CONFIG_SYS_IFC_ADDR)
789 790