]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/cpu/mpc85xx/cpu_init_early.c
powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL
[karo-tx-uboot.git] / 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