From 57946ad8174a70269f59d2df20a451acdbb1dc38 Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Mon, 15 Apr 2024 19:14:55 -0400 Subject: mb/asus/p8z77-m[_pro]: Blink power LED during suspend Set GPIO27 of PCH to blink before going to sleep. This blinks the power LED. Revert after waking up. Tested on p8z77-m. Power LED blinks in suspend. Change-Id: Ie1b40ae17fa2ef397585b86ac82730099b611dda Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/c/coreboot/+/81923 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/asus/p8x7x-series/acpi/platform.asl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mainboard/asus/p8x7x-series/acpi/platform.asl b/src/mainboard/asus/p8x7x-series/acpi/platform.asl index 7da03bfddd..b16ced504c 100644 --- a/src/mainboard/asus/p8x7x-series/acpi/platform.asl +++ b/src/mainboard/asus/p8x7x-series/acpi/platform.asl @@ -2,9 +2,19 @@ Method(_PTS, 1) { +#if (CONFIG(BOARD_ASUS_P8Z77_M) || CONFIG(BOARD_ASUS_P8Z77_M_PRO)) + /* blink power LED if not turning off */ + If (Arg0 != 0x05) + { + GB27 = 1 + } +#endif } Method(_WAK, 1) { +#if (CONFIG(BOARD_ASUS_P8Z77_M) || CONFIG(BOARD_ASUS_P8Z77_M_PRO)) + GB27 = 0 +#endif Return(Package(){0, 0}) } -- cgit v1.2.3