[coreboot-gerrit] New patch to review for coreboot: 228b5bf AMD Olivehill: Add ACPI Sx call for southbridge into _PTS

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Wed Nov 20 08:34:33 CET 2013


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4260

-gerrit

commit 228b5bf4e635948a8da578ef134035054b329c47
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Wed Nov 20 15:11:22 2013 +0800

    AMD Olivehill: Add ACPI Sx call for southbridge into _PTS
    
    The Sx for southbridge calls are in AlibSsdtKB. The original ASL code
    has been scrubbed.
    
    Without the calls, Olive Hill can not wake up if it boots Windows.
    
    TODO: 1. Populate to other board.
          2. If the board is wake up by USB keyboard, Sleeping again will wake
             up immediately without pressing any button.
    
    Change-Id: Ia7bba29904dbd6f33fdb08bf88bb499005ef561b
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 src/mainboard/amd/olivehill/acpi/sleep.asl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mainboard/amd/olivehill/acpi/sleep.asl b/src/mainboard/amd/olivehill/acpi/sleep.asl
index dd0d9a4..fc04ecc 100644
--- a/src/mainboard/amd/olivehill/acpi/sleep.asl
+++ b/src/mainboard/amd/olivehill/acpi/sleep.asl
@@ -36,6 +36,10 @@ Name(WKST,Package(){Zero, Zero})
 * the ACPI driver.  This method cannot modify the configuration or power
 * state of any device in the system.
 */
+
+External(\_SB.APTS, MethodObj)
+External(\_SB.AWAK, MethodObj)
+
 Method(_PTS, 1) {
 	/* DBGO("\\_PTS\n") */
 	/* DBGO("From S0 to S") */
@@ -46,6 +50,7 @@ Method(_PTS, 1) {
 	Store(0, Index(WKST,0))
 	Store(0, Index(WKST,1))
 	Store(7, UPWS)
+	\_SB.APTS(Arg0)
 } /* End Method(\_PTS) */
 
 /*
@@ -84,6 +89,7 @@ Method(\_WAK, 1) {
 	/* DBGO("From S") */
 	/* DBGO(Arg0) */
 	/* DBGO(" to S0\n") */
+	\_SB.AWAK(Arg0)
 
 	Return(WKST)
 } /* End Method(\_WAK) */



More information about the coreboot-gerrit mailing list