Skip to content
Snippets Groups Projects
Commit 2a693605 authored by Prabhakar Kushwaha's avatar Prabhakar Kushwaha Committed by Andy Fleming
Browse files

powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL


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: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent b9944a77
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment