Patchwork [1/2] powerpc: Add a configuration option for early BootX/OpenFirmware debug

login
register
mail settings
Submitter Alistair Popple
Date April 29, 2013, 3:42 a.m.
Message ID <1367206964-6319-2-git-send-email-alistair@popple.id.au>
Download mbox | patch
Permalink /patch/240316/
State Accepted
Commit 071df9422ac91c0d290e81f5ae2635c74cda6d00
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Alistair Popple - April 29, 2013, 3:42 a.m.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
---
 arch/powerpc/Kconfig.debug |    7 +++++++
 arch/powerpc/kernel/udbg.c |    2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
index 5416e28..e826853 100644
--- a/arch/powerpc/Kconfig.debug
+++ b/arch/powerpc/Kconfig.debug
@@ -147,6 +147,13 @@  choice
 	  enable debugging for the wrong type of machine your kernel
 	  _will not boot_.
 
+config PPC_EARLY_DEBUG_BOOTX
+	bool "BootX or OpenFirmware"
+	depends on BOOTX_TEXT
+	help
+	  Select this to enable early debugging for a machine using BootX
+	  or OpenFirmware.
+
 config PPC_EARLY_DEBUG_LPAR
 	bool "LPAR HV Console"
 	depends on PPC_PSERIES
diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c
index f974849..9bbf07b 100644
--- a/arch/powerpc/kernel/udbg.c
+++ b/arch/powerpc/kernel/udbg.c
@@ -50,7 +50,7 @@  void __init udbg_early_init(void)
 	udbg_init_debug_beat();
 #elif defined(CONFIG_PPC_EARLY_DEBUG_PAS_REALMODE)
 	udbg_init_pas_realmode();
-#elif defined(CONFIG_BOOTX_TEXT)
+#elif defined(CONFIG_PPC_EARLY_DEBUG_BOOTX)
 	udbg_init_btext();
 #elif defined(CONFIG_PPC_EARLY_DEBUG_44x)
 	/* PPC44x debug */