mb/asus/p8x7x-series: Blink power LED during suspend
Extends commit 57946ad817 ("mb/asus/p8z77-m[_pro]: Blink power
LED during suspend") to the entire family.
Also, we don't need the 0x for Arg0; it can't go larger than 5.
Applied this patch and CB:82556 while developing a port for
P8Z77-V LE PLUS variant (which uses GPIO8 for power LED). Its
power LED does blink during suspend.
Change-Id: Ie30e5ef79a87a3dca6875b0a6e07ae99d0d79e6e
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82557
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
0f38b6b1ba
commit
2ac0a7feeb
1 changed files with 8 additions and 7 deletions
|
|
@ -1,20 +1,21 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#if CONFIG(POWER_LED_USES_GPIO8)
|
||||
#define BLINK_POWER_LED GB08
|
||||
#else
|
||||
#define BLINK_POWER_LED GB27
|
||||
#endif
|
||||
|
||||
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)
|
||||
If (Arg0 != 5)
|
||||
{
|
||||
GB27 = 1
|
||||
BLINK_POWER_LED = 1
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Method(_WAK, 1)
|
||||
{
|
||||
#if (CONFIG(BOARD_ASUS_P8Z77_M) || CONFIG(BOARD_ASUS_P8Z77_M_PRO))
|
||||
GB27 = 0
|
||||
#endif
|
||||
BLINK_POWER_LED = 0
|
||||
Return(Package(){0, 0})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue