[coreboot-gerrit] Change in coreboot[master]: mb/hp/compaq_8200_elite_sff: Call NPCD378 sleep/wake handlers
Patrick Rudolph (Code Review)
gerrit at coreboot.org
Tue Jul 17 13:11:53 CEST 2018
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/27511
Change subject: mb/hp/compaq_8200_elite_sff: Call NPCD378 sleep/wake handlers
......................................................................
mb/hp/compaq_8200_elite_sff: Call NPCD378 sleep/wake handlers
* Call sleep and wake functions
* Add power button
* Add GBEs for wake
Change-Id: I0cf2cffd06fe2470c2a8f1d8b57de282362ec17e
Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
M src/mainboard/hp/compaq_8200_elite_sff/acpi/platform.asl
M src/mainboard/hp/compaq_8200_elite_sff/acpi/superio.asl
M src/mainboard/hp/compaq_8200_elite_sff/dsdt.asl
3 files changed, 51 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/27511/1
diff --git a/src/mainboard/hp/compaq_8200_elite_sff/acpi/platform.asl b/src/mainboard/hp/compaq_8200_elite_sff/acpi/platform.asl
index 733c4b1..db7ff22 100644
--- a/src/mainboard/hp/compaq_8200_elite_sff/acpi/platform.asl
+++ b/src/mainboard/hp/compaq_8200_elite_sff/acpi/platform.asl
@@ -13,11 +13,14 @@
* GNU General Public License for more details.
*/
-Method(_WAK,1)
+Method(_WAK, 1, NotSerialized)
{
+ \_SB.PCI0.LPCB.SIO0.SIOW (Arg0)
+
Return(Package(){0,0})
}
-Method(_PTS,1)
+Method(_PTS, 1, NotSerialized)
{
-}
+ \_SB.PCI0.LPCB.SIO0.SIOS (Arg0)
+}
\ No newline at end of file
diff --git a/src/mainboard/hp/compaq_8200_elite_sff/acpi/superio.asl b/src/mainboard/hp/compaq_8200_elite_sff/acpi/superio.asl
index 9ec2949..a22be9a 100644
--- a/src/mainboard/hp/compaq_8200_elite_sff/acpi/superio.asl
+++ b/src/mainboard/hp/compaq_8200_elite_sff/acpi/superio.asl
@@ -23,3 +23,41 @@
#define SUPERIO_SHOW_KBC
#include <superio/nuvoton/npcd378/acpi/superio.asl>
+
+Scope (\_GPE)
+{
+ Method (_L08, 0, NotSerialized)
+ {
+ \_SB.PCI0.LPCB.SIO0.SIOH ()
+ Notify (\_SB.PWRB, 0x02)
+ }
+
+ Method (_L0B, 0, NotSerialized)
+ {
+ Notify (\_SB.PWRB, 0x02)
+ }
+
+ Method (_L0D, 0, NotSerialized)
+ {
+ Notify (\_SB.PCI0.EHC1, 0x02)
+ Notify (\_SB.PCI0.EHC2, 0x02)
+ //FIXME: Add GBE device
+ //Notify (\_SB.PCI0.GBE, 0x02)
+ Notify (\_SB.PWRB, 0x02)
+ }
+
+ Method (_L09, 0, NotSerialized)
+ {
+ Notify (\_SB.PCI0.RP01, 0x02)
+ Notify (\_SB.PCI0.RP02, 0x02)
+ Notify (\_SB.PCI0.RP03, 0x02)
+ Notify (\_SB.PCI0.RP04, 0x02)
+ Notify (\_SB.PCI0.RP05, 0x02)
+ Notify (\_SB.PCI0.RP06, 0x02)
+ Notify (\_SB.PCI0.RP07, 0x02)
+ Notify (\_SB.PCI0.RP08, 0x02)
+ Notify (\_SB.PCI0.PEGP, 0x02)
+
+ Notify (\_SB.PWRB, 0x02)
+ }
+}
\ No newline at end of file
diff --git a/src/mainboard/hp/compaq_8200_elite_sff/dsdt.asl b/src/mainboard/hp/compaq_8200_elite_sff/dsdt.asl
index 555028c..0189e0f 100644
--- a/src/mainboard/hp/compaq_8200_elite_sff/dsdt.asl
+++ b/src/mainboard/hp/compaq_8200_elite_sff/dsdt.asl
@@ -40,5 +40,12 @@
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
#include <southbridge/intel/bd82x6x/acpi/pch.asl>
}
+
+ Device (PWRB)
+ {
+ Name(_HID, EisaId("PNP0C0C"))
+ Name(_UID, 0xAA)
+ Name(_STA, 0x0B)
+ }
}
}
--
To view, visit https://review.coreboot.org/27511
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0cf2cffd06fe2470c2a8f1d8b57de282362ec17e
Gerrit-Change-Number: 27511
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph at 9elements.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180717/83b9a1e0/attachment.html>
More information about the coreboot-gerrit
mailing list