Skip to contentSkip to conversation

powerpc/SPL:Allow Parsing of LAW table in both SPL & non SPL

PATCH Superseded Prabhakar Kushwaha 1 participant 1 message Oct 1, 2013 PowerPC

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 powerpc/SPL:Allow Parsing of LAW table in both SPL & non SPL

SPL does not relocates the CCSRBAR hence it is using CCSRBAR at 0xfe00_0000. U-boot relocates CCSRBAR to 0xf_fe00_0000.

So law talbe needs to be updated again.

---
Based upon git://git.denx.de/u-boot-mpc85xx.git branch next

 arch/powerpc/cpu/mpc8xxx/law.c |    9 ---------
 1 file changed, 9 deletions(-)
arch/powerpc/cpu/mpc8xxx/law.c +0 -9
index a401083..d76ba22 100644
@@ -244,15 +244,6 @@ void init_laws(void)
 			gd->arch.used_laws |= (1 << i);
 	}
 
-#if (defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)) || \
-	(defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD))
-	/*
-	 * in SPL boot we've already parsed the law_table and setup those LAWs
-	 * so don't do it again.
-	 */
-	return;
-#endif
-
 	for (i = 0; i < num_law_entries; i++) {
 		if (law_table[i].index == -1)
 			set_next_law(law_table[i].addr, law_table[i].size,
Signature · 1 line
1.7.9.5