powerpc/8xx: Allow pinning IMMR TLB when using early debug console
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 20 Dec 2018 07:25:28 +0000 (07:25 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
CONFIG_EARLY_DEBUG_CPM requires IMMR area TLB to be pinned
otherwise it doesn't survive MMU_init, and the boot fails.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig

index 6d6e1ff..a1e858e 100644 (file)
@@ -1143,7 +1143,7 @@ config PIN_TLB_DATA
 
 config PIN_TLB_IMMR
        bool "Pinned TLB for IMMR"
-       depends on PIN_TLB
+       depends on PIN_TLB || PPC_EARLY_DEBUG_CPM
        default y
 
 config PIN_TLB_TEXT