aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/hp/snb_ivb_desktops/acpi
diff options
context:
space:
mode:
authorRiku Viitanen <riku.viitanen@protonmail.com>2023-12-11 21:16:26 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-05 20:54:04 +0000
commitc7932e267da0cba819545fa1201b6237db69091d (patch)
tree835b34217e5a96d8b89de0e1fffafbcce0b228ba /src/mainboard/hp/snb_ivb_desktops/acpi
parente9a5e82176eb69a29a6f40bf4fec45c90980c1e6 (diff)
mb/hp/z220_series: Rename to snb_ivb_desktops
In preparation for adding other similar boards under it as variants. Tested that z220_cmt still builds. Change-Id: I96dec173e0d97d8564bad14778333b8231684ef8 Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79434 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/hp/snb_ivb_desktops/acpi')
-rw-r--r--src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl3
-rw-r--r--src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl35
-rw-r--r--src/mainboard/hp/snb_ivb_desktops/acpi/platform.asl15
-rw-r--r--src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl27
4 files changed, 80 insertions, 0 deletions
diff --git a/src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl b/src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl
new file mode 100644
index 0000000000..16990d45f4
--- /dev/null
+++ b/src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: CC-PDDC */
+
+/* Please update the license if adding licensable material. */
diff --git a/src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl b/src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl
new file mode 100644
index 0000000000..ff3866a258
--- /dev/null
+++ b/src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl
@@ -0,0 +1,35 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+// Intel PCI to PCI bridge 0:1e.0
+
+Device (PCIB)
+{
+ Name (_ADR, 0x001e0000)
+ Name (_PRW, Package() { 13, 4 }) // Power Resources for Wake
+
+ Method (_PRT) // _PRT: PCI Interrupt Routing Table
+ {
+ If (PICM) {
+ Return (Package() {
+ Package() { 0x0000ffff, 0, 0, 0x14 },
+ Package() { 0x0000ffff, 1, 0, 0x15 },
+ Package() { 0x0000ffff, 2, 0, 0x16 },
+ Package() { 0x0000ffff, 3, 0, 0x17 },
+ Package() { 0x0001ffff, 0, 0, 0x15 },
+ Package() { 0x0001ffff, 1, 0, 0x16 },
+ Package() { 0x0001ffff, 2, 0, 0x17 },
+ Package() { 0x0001ffff, 3, 0, 0x14 },
+ })
+ }
+ Return (Package() {
+ Package() { 0x0000ffff, 0, \_SB.PCI0.LPCB.LNKE, 0 },
+ Package() { 0x0000ffff, 1, \_SB.PCI0.LPCB.LNKF, 0 },
+ Package() { 0x0000ffff, 2, \_SB.PCI0.LPCB.LNKG, 0 },
+ Package() { 0x0000ffff, 3, \_SB.PCI0.LPCB.LNKH, 0 },
+ Package() { 0x0001ffff, 0, \_SB.PCI0.LPCB.LNKF, 0 },
+ Package() { 0x0001ffff, 1, \_SB.PCI0.LPCB.LNKG, 0 },
+ Package() { 0x0001ffff, 2, \_SB.PCI0.LPCB.LNKH, 0 },
+ Package() { 0x0001ffff, 3, \_SB.PCI0.LPCB.LNKE, 0 },
+ })
+ }
+}
diff --git a/src/mainboard/hp/snb_ivb_desktops/acpi/platform.asl b/src/mainboard/hp/snb_ivb_desktops/acpi/platform.asl
new file mode 100644
index 0000000000..861d3cdf71
--- /dev/null
+++ b/src/mainboard/hp/snb_ivb_desktops/acpi/platform.asl
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Method(_WAK, 1, NotSerialized)
+{
+ // Generated by SSDT
+ \_SB.PCI0.LPCB.SIO0.SIOW (Arg0)
+
+ Return(Package(){0,0})
+}
+
+Method(_PTS, 1, NotSerialized)
+{
+ // Generated by SSDT
+ \_SB.PCI0.LPCB.SIO0.SIOS (Arg0)
+}
diff --git a/src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl b/src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl
new file mode 100644
index 0000000000..506c6d4c2d
--- /dev/null
+++ b/src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <superio/nuvoton/npcd378/acpi/superio.asl>
+
+Scope (\_GPE)
+{
+ Method (_L0D, 0, NotSerialized)
+ {
+ Notify (\_SB.PCI0.EHC1, 0x02)
+ Notify (\_SB.PCI0.EHC2, 0x02)
+ //FIXME: Add GBE device
+ //Notify (\_SB.PCI0.GBE, 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)
+ }
+}