From c7932e267da0cba819545fa1201b6237db69091d Mon Sep 17 00:00:00 2001 From: Riku Viitanen Date: Mon, 11 Dec 2023 21:16:26 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79434 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl | 3 ++ src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl | 35 ++++++++++++++++++++++ .../hp/snb_ivb_desktops/acpi/platform.asl | 15 ++++++++++ src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl | 27 +++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 src/mainboard/hp/snb_ivb_desktops/acpi/ec.asl create mode 100644 src/mainboard/hp/snb_ivb_desktops/acpi/pci.asl create mode 100644 src/mainboard/hp/snb_ivb_desktops/acpi/platform.asl create mode 100644 src/mainboard/hp/snb_ivb_desktops/acpi/superio.asl (limited to 'src/mainboard/hp/snb_ivb_desktops/acpi') 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 + +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) + } +} -- cgit v1.2.3