aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig.debug
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-19 13:44:59 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-20 02:09:54 -0400
commitdaea1175a9f0f70eab5b33e2827d57ba8c686816 (patch)
treeaac48bd8bdfb9c7ee8e3e5058aea07e04e105da3 /arch/powerpc/Kconfig.debug
parent6e35d5dac0c83ebb616ff3b9c2d6155c9a9ccb86 (diff)
powerpc/powernv: Support for OPAL console
This adds a udbg and an hvc console backend for supporting a console using the OPAL console interfaces. On OPAL v1 we have hvc0 mapped to whatever console the system was configured for (network or hvsi serial port) via the service processor. On OPAL v2 we have hvcN mapped to the Nth console provided by OPAL which generally corresponds to: hvc0 : network console (raw protocol) hvc1 : serial port S1 (hvsi) hvc2 : serial port S2 (hvsi) Note: At this point, early debug console only works with OPAL v1 and shouldn't be enabled in a normal kernel. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/Kconfig.debug')
-rw-r--r--arch/powerpc/Kconfig.debug31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
index 06eb62b0fd90..1b8a9c905cf7 100644
--- a/arch/powerpc/Kconfig.debug
+++ b/arch/powerpc/Kconfig.debug
@@ -265,8 +265,27 @@ config PPC_EARLY_DEBUG_PS3GELIC
265 Select this to enable early debugging for the PlayStation3 via 265 Select this to enable early debugging for the PlayStation3 via
266 UDP broadcasts sent out through the Ethernet port. 266 UDP broadcasts sent out through the Ethernet port.
267 267
268config PPC_EARLY_DEBUG_OPAL_RAW
269 bool "OPAL raw console"
270 depends on HVC_OPAL
271 help
272 Select this to enable early debugging for the PowerNV platform
273 using a "raw" console
274
275config PPC_EARLY_DEBUG_OPAL_HVSI
276 bool "OPAL hvsi console"
277 depends on HVC_OPAL
278 help
279 Select this to enable early debugging for the PowerNV platform
280 using an "hvsi" console
281
268endchoice 282endchoice
269 283
284config PPC_EARLY_DEBUG_OPAL
285 def_bool y
286 depends on PPC_EARLY_DEBUG_OPAL_RAW || PPC_EARLY_DEBUG_OPAL_HVSI
287
288
270config PPC_EARLY_DEBUG_HVSI_VTERMNO 289config PPC_EARLY_DEBUG_HVSI_VTERMNO
271 hex "vterm number to use with early debug HVSI" 290 hex "vterm number to use with early debug HVSI"
272 depends on PPC_EARLY_DEBUG_LPAR_HVSI 291 depends on PPC_EARLY_DEBUG_LPAR_HVSI
@@ -275,6 +294,18 @@ config PPC_EARLY_DEBUG_HVSI_VTERMNO
275 You probably want 0x30000000 for your first serial port and 294 You probably want 0x30000000 for your first serial port and
276 0x30000001 for your second one 295 0x30000001 for your second one
277 296
297config PPC_EARLY_DEBUG_OPAL_VTERMNO
298 hex "vterm number to use with OPAL early debug"
299 depends on PPC_EARLY_DEBUG_OPAL
300 default "0"
301 help
302 This correspond to which /dev/hvcN you want to use for early
303 debug.
304
305 On OPAL v1 (takeover) this should always be 0
306 On OPAL v2, this will be 0 for network console and 1 or 2 for
307 the machine built-in serial ports.
308
278config PPC_EARLY_DEBUG_44x_PHYSLOW 309config PPC_EARLY_DEBUG_44x_PHYSLOW
279 hex "Low 32 bits of early debug UART physical address" 310 hex "Low 32 bits of early debug UART physical address"
280 depends on PPC_EARLY_DEBUG_44x 311 depends on PPC_EARLY_DEBUG_44x