Skip to contentSkip to conversation

powerpc/85xx: Fix NAND SPL support

PATCH New Kumar Gala 1 participant 2 messages Nov 9, 2011 – Nov 11, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Fix NAND SPL support

We cause CCSRBAR to be relocated in the SPL phase of NAND boot which isn't expected and breaks things. Fixing the board config.h to NOT relocate CCSR during the CONFIG_NAND_SPL phase.

---
 include/configs/MPC8536DS.h    |    2 +-
 include/configs/MPC8569MDS.h   |    2 +-
 include/configs/MPC8572DS.h    |    2 +-
 include/configs/P1_P2_RDB.h    |    2 +-
 include/configs/p1_p2_rdb_pc.h |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
include/configs/MPC8536DS.h +1 -1
index d4e3ef5..16db98f 100644
@@ -131,7 +131,7 @@
 #define CONFIG_SYS_CCSRBAR		0xffe00000
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW	CONFIG_SYS_CCSRBAR
 
-#if defined(CONFIG_RAMBOOT_NAND) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_NAND_SPL)
 #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
 #endif
 
include/configs/MPC8569MDS.h +1 -1
index 19d3271..ab27b98 100644
@@ -108,7 +108,7 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_SYS_CCSRBAR		0xe0000000
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW	CONFIG_SYS_CCSRBAR
 
-#if defined(CONFIG_RAMBOOT_NAND) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_NAND_SPL)
 #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
 #endif
 
include/configs/MPC8572DS.h +1 -1
index ffee8fc..d7910e1 100644
@@ -115,7 +115,7 @@
 #define CONFIG_SYS_CCSRBAR		0xffe00000
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW	CONFIG_SYS_CCSRBAR
 
-#if defined(CONFIG_RAMBOOT_NAND) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_NAND_SPL)
 #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
 #endif
 
include/configs/P1_P2_RDB.h +1 -1
index 883d44e..00fa74d 100644
@@ -151,7 +151,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_SYS_CCSRBAR		0xffe00000
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW	CONFIG_SYS_CCSRBAR
 
-#if defined(CONFIG_RAMBOOT_NAND) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_NAND_SPL)
 #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
 #endif
 
include/configs/p1_p2_rdb_pc.h +1 -1
index bcfb034..5a69902 100644
@@ -221,7 +221,7 @@
 
 /* IN case of NAND bootloader relocate CCSRBAR in RAMboot code not in the 4k
        SPL code*/
-#if defined(CONFIG_NAND_U_BOOT) && defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_NAND_SPL)
 #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
 #endif
 
Signature · 1 line
1.7.3.4
author Applied
#1 lore raw

PATCH 1/1 powerpc/85xx: Fix NAND SPL support

Quoted 4 lines · Kumar Gala

We cause CCSRBAR to be relocated in the SPL phase of NAND boot which isn't expected and breaks things. Fixing the board config.h to NOT relocate CCSR during the CONFIG_NAND_SPL phase.

Quoted 8 lines

---

include/configs/MPC8536DS.h    |    2 +-
include/configs/MPC8569MDS.h   |    2 +-
include/configs/MPC8572DS.h    |    2 +-
include/configs/P1_P2_RDB.h    |    2 +-
include/configs/p1_p2_rdb_pc.h |    2 +-
5 files changed, 5 insertions(+), 5 deletions(-)

applied

- k