powerpc/boot: Use CONFIG_PPC_POWERNV to compile OPAL support
CONFIG_PPC64_BOOT_WRAPPER is selected by CPU_LITTLE_ENDIAN which is used to compile support for other platforms such as Microwatt. There is no need for OPAL calls on these. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211011070356.99952-1-clg@kaod.org
This commit is contained in:
Родитель
602946ec2f
Коммит
6ffeb56ee2
|
@ -123,7 +123,7 @@ src-wlib-y := string.S crt0.S stdio.c decompress.c main.c \
|
||||||
oflib.c ofconsole.c cuboot.c
|
oflib.c ofconsole.c cuboot.c
|
||||||
|
|
||||||
src-wlib-$(CONFIG_PPC_MPC52xx) += mpc52xx-psc.c
|
src-wlib-$(CONFIG_PPC_MPC52xx) += mpc52xx-psc.c
|
||||||
src-wlib-$(CONFIG_PPC64_BOOT_WRAPPER) += opal-calls.S opal.c
|
src-wlib-$(CONFIG_PPC_POWERNV) += opal-calls.S opal.c
|
||||||
ifndef CONFIG_PPC64_BOOT_WRAPPER
|
ifndef CONFIG_PPC64_BOOT_WRAPPER
|
||||||
src-wlib-y += crtsavres.S
|
src-wlib-y += crtsavres.S
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -132,7 +132,7 @@ int serial_console_init(void)
|
||||||
else if (dt_is_compatible(devp, "fsl,mpc5200-psc-uart"))
|
else if (dt_is_compatible(devp, "fsl,mpc5200-psc-uart"))
|
||||||
rc = mpc5200_psc_console_init(devp, &serial_cd);
|
rc = mpc5200_psc_console_init(devp, &serial_cd);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PPC64_BOOT_WRAPPER
|
#ifdef CONFIG_PPC_POWERNV
|
||||||
else if (dt_is_compatible(devp, "ibm,opal-console-raw"))
|
else if (dt_is_compatible(devp, "ibm,opal-console-raw"))
|
||||||
rc = opal_console_init(devp, &serial_cd);
|
rc = opal_console_init(devp, &serial_cd);
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче