powerpc/powernv: Add calls to support little endian host
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 May 2014 01:01:28 +0000 (11:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Jun 2014 03:19:59 +0000 (13:19 +1000)
commit4926616c77435e735c59288f838e7761baec4a6c
treea9dd2f673b9bdc1de9530b49232d7beb85ebd0f8
parent26c88f930141f0d9e7673af2332ada67b7e8865a
powerpc/powernv: Add calls to support little endian host

When running as a powernv "host" system on P8, we need to switch
the endianness of interrupt handlers. This does it via the appropriate
call to the OPAL firmware which may result in just switching HID0:HILE
but depending on the processor version might need to do a few more
things. This call must be done early before any other processor has
been brought out of firmware.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c