powerpc/powernv: Support for OPAL console
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Sep 2011 17:44:59 +0000 (17:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 Sep 2011 06:09:54 +0000 (16:09 +1000)
commitdaea1175a9f0f70eab5b33e2827d57ba8c686816
treeaac48bd8bdfb9c7ee8e3e5058aea07e04e105da3
parent6e35d5dac0c83ebb616ff3b9c2d6155c9a9ccb86
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>
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/udbg.h
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/udbg.c
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/powernv/setup.c
drivers/tty/hvc/Kconfig
drivers/tty/hvc/Makefile
drivers/tty/hvc/hvc_opal.c [new file with mode: 0644]
drivers/tty/hvc/hvsi_lib.c