diff --git a/src/mainboard/asus/p8x7x-series/acpi/platform.asl b/src/mainboard/asus/p8x7x-series/acpi/platform.asl index b5c3fc333a..d7dcaeeec5 100644 --- a/src/mainboard/asus/p8x7x-series/acpi/platform.asl +++ b/src/mainboard/asus/p8x7x-series/acpi/platform.asl @@ -12,10 +12,12 @@ Method(_PTS, 1) { BLINK_POWER_LED = 1 } + \_SB.PCI0.LPCB.SIO0.SIOS(Arg0) } Method(_WAK, 1) { BLINK_POWER_LED = 0 + \_SB.PCI0.LPCB.SIO0.SIOW(Arg0) Return(Package(){0, 0}) } diff --git a/src/mainboard/asus/p8x7x-series/acpi/superio.asl b/src/mainboard/asus/p8x7x-series/acpi/superio.asl index 55b1db5b11..3fb0be5bef 100644 --- a/src/mainboard/asus/p8x7x-series/acpi/superio.asl +++ b/src/mainboard/asus/p8x7x-series/acpi/superio.asl @@ -1,3 +1,31 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#define SUPERIO_DEV SIO0 +#define SUPERIO_PNP_BASE CONFIG_SUPERIO_NUVOTON_PNP_BASE -#include +/* Defines to have ASLs below make visible some devices */ +#if !CONFIG(NO_UART_ON_SUPERIO) +#define NCT677X_SHOW_SP1 +#endif + +/* TODO: Exclude next lines for variants without PS/2 port */ +#define NCT677X_SHOW_KBC +#define SUPERIO_KBC_PS2KID PS2K +#define SUPERIO_KBC_PS2MID PS2M + +/* + * This series uses one of four SIO chips: + * NCT6776 (p8c_ws) + * NCT6779D + * NCT5535D + * IT8771E (P8H77-I and P8H77-V LE, both not yet supported) + * + * Include the correct ASL file. + */ + +#if CONFIG(SUPERIO_NUVOTON_NCT6779D) +#include +#elif CONFIG(SUPERIO_NUVOTON_NCT5535D) +#include +#elif CONFIG(SUPERIO_NUVOTON_NCT6776) +#include +#endif