Skip to content

Commit 071df94

Browse files
apoppleozbenh
authored andcommitted
powerpc: Add a configuration option for early BootX/OpenFirmware debug
Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 0962e80 commit 071df94

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎arch/powerpc/Kconfig.debug‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ choice
147147
enable debugging for the wrong type of machine your kernel
148148
_will not boot_.
149149

150+
config PPC_EARLY_DEBUG_BOOTX
151+
bool "BootX or OpenFirmware"
152+
depends on BOOTX_TEXT
153+
help
154+
Select this to enable early debugging for a machine using BootX
155+
or OpenFirmware.
156+
150157
config PPC_EARLY_DEBUG_LPAR
151158
bool "LPAR HV Console"
152159
depends on PPC_PSERIES

‎arch/powerpc/kernel/udbg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void __init udbg_early_init(void)
5050
udbg_init_debug_beat();
5151
#elif defined(CONFIG_PPC_EARLY_DEBUG_PAS_REALMODE)
5252
udbg_init_pas_realmode();
53-
#elif defined(CONFIG_BOOTX_TEXT)
53+
#elif defined(CONFIG_PPC_EARLY_DEBUG_BOOTX)
5454
udbg_init_btext();
5555
#elif defined(CONFIG_PPC_EARLY_DEBUG_44x)
5656
/* PPC44x debug */

0 commit comments

Comments
 (0)