Tony Huang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/67366 )
Change subject: [TEST] Shotzo cut off USB LAN power ......................................................................
[TEST] Shotzo cut off USB LAN power
Change-Id: I252a4e285e65530cfde5bd07d6e1c5971c4f971b Signed-off-by: Tony Huang tony-huang@quanta.corp-partner.google.com --- M src/mainboard/google/dedede/dsdt.asl A src/mainboard/google/dedede/mainboard.asl 2 files changed, 35 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/67366/1
diff --git a/src/mainboard/google/dedede/dsdt.asl b/src/mainboard/google/dedede/dsdt.asl index 56812d5..85e6b6b 100644 --- a/src/mainboard/google/dedede/dsdt.asl +++ b/src/mainboard/google/dedede/dsdt.asl @@ -19,6 +19,7 @@ #include <cpu/intel/common/acpi/cpu.asl>
Scope (_SB) { + #include "mainboard.asl" Device (PCI0) { #include <soc/intel/common/block/acpi/acpi/northbridge.asl> diff --git a/src/mainboard/google/dedede/mainboard.asl b/src/mainboard/google/dedede/mainboard.asl new file mode 100644 index 0000000..6c0345d --- /dev/null +++ b/src/mainboard/google/dedede/mainboard.asl @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#include <baseboard/gpio.h> +#if CONFIG(BOARD_GOOGLE_SHOTZO) +/* + * S0ix Entry/Exit Notifications + * Called from _SB.PEPD._DSM + */ +Method (MS0X, 1, Serialized) +{ + If (Arg0 == 1) { + /* + * On S0ix entry, clear the SLP_S0_GATE pin, so that the rest of + * the platform can transition to its low power state as well. + */ + _SB.PCI0.CTXS(GPP_A10); + } Else { + /* + * On S0ix exit, set the SLP_S0_GATE pin, so that the rest of + * the platform will resume from its low power state. + */ + _SB.PCI0.STXS(GPP_A10); + } +} +#endif