diff options
-rw-r--r-- | arch/powerpc/Kconfig | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/setup.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 13e583f16ede..7f782b338e8e 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -426,7 +426,8 @@ config PPC_IBM_CELL_BLADE | |||
426 | select UDBG_RTAS_CONSOLE | 426 | select UDBG_RTAS_CONSOLE |
427 | 427 | ||
428 | config UDBG_RTAS_CONSOLE | 428 | config UDBG_RTAS_CONSOLE |
429 | bool | 429 | bool "RTAS based debug console" |
430 | depends on PPC_RTAS | ||
430 | default n | 431 | default n |
431 | 432 | ||
432 | config XICS | 433 | config XICS |
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index bfd66d3a035c..6b0699b82b41 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -910,6 +910,11 @@ int __init early_init_dt_scan_rtas(unsigned long node, | |||
910 | basep = of_get_flat_dt_prop(node, "get-term-char", NULL); | 910 | basep = of_get_flat_dt_prop(node, "get-term-char", NULL); |
911 | if (basep) | 911 | if (basep) |
912 | rtas_getchar_token = *basep; | 912 | rtas_getchar_token = *basep; |
913 | |||
914 | if (rtas_putchar_token != RTAS_UNKNOWN_SERVICE && | ||
915 | rtas_getchar_token != RTAS_UNKNOWN_SERVICE) | ||
916 | udbg_init_rtas_console(); | ||
917 | |||
913 | #endif | 918 | #endif |
914 | 919 | ||
915 | /* break now */ | 920 | /* break now */ |
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 282987d6d4a2..22c228a49c33 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -150,10 +150,6 @@ static int __init cell_probe(void) | |||
150 | !of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) | 150 | !of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) |
151 | return 0; | 151 | return 0; |
152 | 152 | ||
153 | #ifdef CONFIG_UDBG_RTAS_CONSOLE | ||
154 | udbg_init_rtas_console(); | ||
155 | #endif | ||
156 | |||
157 | hpte_init_native(); | 153 | hpte_init_native(); |
158 | 154 | ||
159 | return 1; | 155 | return 1; |