diff mbox

[U-Boot,4/7,v4] powerpc/mpc8xxx:Allow Parsing of LAW table in both SPL & non SPL

Message ID 1394345188-2345-1-git-send-email-prabhakar@freescale.com
State Rejected
Delegated to: York Sun
Headers show

Commit Message

Prabhakar Kushwaha March 9, 2014, 6:06 a.m. UTC
It is not necessary for SPL to define all required LAW of the system.
 Re-parse LAW table again during non SPL boot.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
---
Changes for v2: Sending as it is
Changes for v3: Sending as it is
Changes for v4: Sending as it is


 arch/powerpc/cpu/mpc8xxx/law.c |    9 ---------
 1 file changed, 9 deletions(-)
diff mbox

Patch

diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c
index a401083..d76ba22 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -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,