powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Fri, 5 Jul 2013 06:29:26 +0000 (11:59 +0530)
committerAndy Fleming <afleming@freescale.com>
Tue, 16 Jul 2013 22:44:30 +0000 (17:44 -0500)
CONFIG_SPL_BUILD creates debug TLB entry, so disable it before init_tlbs.

CONFIG_SPL_INIT_MINIMAL never creates any debug TLB entry, so no need
of disable_tlb().

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/cpu_init_early.c

index 837c034be90e5fecf9bfc9946b18ace5c05e8cd0..3b3c82f846805e067515974dddd64b126eeb821b 100644 (file)
@@ -180,7 +180,9 @@ void cpu_init_early_f(void)
 
        invalidate_tlb(1);
 
-#if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && \
+       !(defined(CONFIG_SPL_INIT_MINIMAL) && defined(CONFIG_SPL_BUILD)) && \
+       !defined(CONFIG_NAND_SPL)
        disable_tlb(CONFIG_SYS_PPC_E500_DEBUG_TLB);
 #endif