提交 9a2ded55 编写于 作者: M Michael Neuling 提交者: Paul Mackerras

[POWERPC] powerpc: Make RTAS console init generic

The rtas console doesn't have to be Cell specific.  If we get both
RTAS tokens, we should just enabled the console then and there.
Signed-off-by: NMichael Neuling <mikey@neuling.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 869d7f38
...@@ -426,7 +426,8 @@ config PPC_IBM_CELL_BLADE ...@@ -426,7 +426,8 @@ config PPC_IBM_CELL_BLADE
select UDBG_RTAS_CONSOLE select UDBG_RTAS_CONSOLE
config UDBG_RTAS_CONSOLE config UDBG_RTAS_CONSOLE
bool bool "RTAS based debug console"
depends on PPC_RTAS
default n default n
config XICS config XICS
......
...@@ -910,6 +910,11 @@ int __init early_init_dt_scan_rtas(unsigned long node, ...@@ -910,6 +910,11 @@ int __init early_init_dt_scan_rtas(unsigned long node,
basep = of_get_flat_dt_prop(node, "get-term-char", NULL); basep = of_get_flat_dt_prop(node, "get-term-char", NULL);
if (basep) if (basep)
rtas_getchar_token = *basep; rtas_getchar_token = *basep;
if (rtas_putchar_token != RTAS_UNKNOWN_SERVICE &&
rtas_getchar_token != RTAS_UNKNOWN_SERVICE)
udbg_init_rtas_console();
#endif #endif
/* break now */ /* break now */
......
...@@ -150,10 +150,6 @@ static int __init cell_probe(void) ...@@ -150,10 +150,6 @@ static int __init cell_probe(void)
!of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) !of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
return 0; return 0;
#ifdef CONFIG_UDBG_RTAS_CONSOLE
udbg_init_rtas_console();
#endif
hpte_init_native(); hpte_init_native();
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册