mb/asus/p8x7x-series: Enable common SIO ASL code
Bring in ACPI ASL code from sio/nuvoton/common and hook up the SIO ACPI suspend hook. TEST=PS/2 keyboard can wake asus/p8z77-m from S3 but not S5, as expected. Change-Id: I8d38928adb840d6fcb4703dd9ad69480813156ca Signed-off-by: Keith Hui <buurin@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89746 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e82ecc739d
commit
e47952c3a7
2 changed files with 31 additions and 1 deletions
|
|
@ -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})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 <drivers/pc80/pc/ps2_controller.asl>
|
||||
/* 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 <superio/nuvoton/nct6779d/acpi/superio.asl>
|
||||
#elif CONFIG(SUPERIO_NUVOTON_NCT5535D)
|
||||
#include <superio/nuvoton/nct5535d/acpi/superio.asl>
|
||||
#elif CONFIG(SUPERIO_NUVOTON_NCT6776)
|
||||
#include <superio/nuvoton/nct6776/acpi/superio.asl>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue