diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-08 22:05:28 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-12-11 13:03:30 +1100 |
commit | f8e8e69cea4934485e2dd3d25005c68d671167d9 (patch) | |
tree | 5cc3f3cd63dedc1b7f751ed56ddc34ce1b4e2985 /arch/powerpc/boot/serial.c | |
parent | 3d6bf693d8bc63f2e5eca7373916c4871f8ffd66 (diff) | |
download | linux-f8e8e69cea4934485e2dd3d25005c68d671167d9.tar.gz |
powerpc/boot: Only build OPAL code when necessary
Only build the OPAL console code in when necessary. This looks like it
should use CONFIG_PPC_POWERNV, but because the opal-call.S code is
64-bit only, we must only build it when we're building the boot
wrapper 64-bit.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/serial.c')
-rw-r--r-- | arch/powerpc/boot/serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c index 71d062b48c1b..6f2b2ecf10bd 100644 --- a/arch/powerpc/boot/serial.c +++ b/arch/powerpc/boot/serial.c @@ -138,8 +138,10 @@ int serial_console_init(void) dt_is_compatible(devp, "xlnx,xps-uartlite-1.00.a")) rc = uartlite_console_init(devp, &serial_cd); #endif +#ifdef CONFIG_PPC64_BOOT_WRAPPER else if (dt_is_compatible(devp, "ibm,opal-console-raw")) rc = opal_console_init(devp, &serial_cd); +#endif /* Add other serial console driver calls here */ |