diff options
author | Tim Crawford <tcrawford@system76.com> | 2021-01-26 11:50:36 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-28 09:15:00 +0000 |
commit | fdc8fd3602eddabdbbd0d9d87329343160cec337 (patch) | |
tree | a722e6166794af7d2728cc477a81ccdd835f98b9 /src/mainboard/system76/oryp5/acpi | |
parent | 1ee8ddc484bf87b99d4ba80f6d4fb99ee043780e (diff) |
mb/system76/oryp5: Add System76 Oryx Pro 5
Tested with TianoCore payload (UefiPayloadPkg).
Working:
- PS/2 keyboard, touchpad
- Both DIMM slots
- Both NVMe ports
- SATA port
- All USB ports
- Webcam
- Ethernet
- Integrated graphics
- Internal microphone
- S3 suspend/resume
- Flashing with flashrom
- Booting to Ubuntu Linux and Windows
Not working:
- Discrete/Hybrid graphics
- Internal speakers
These two require new drivers to work correctly, which will be added and
enabled later.
Change-Id: Iae6e530dcd52df3642cdfe74b65bfff5aa0dd402
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47892
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/system76/oryp5/acpi')
-rw-r--r-- | src/mainboard/system76/oryp5/acpi/gpe.asl | 12 | ||||
-rw-r--r-- | src/mainboard/system76/oryp5/acpi/mainboard.asl | 16 | ||||
-rw-r--r-- | src/mainboard/system76/oryp5/acpi/sleep.asl | 13 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/mainboard/system76/oryp5/acpi/gpe.asl b/src/mainboard/system76/oryp5/acpi/gpe.asl new file mode 100644 index 0000000000..81022642e4 --- /dev/null +++ b/src/mainboard/system76/oryp5/acpi/gpe.asl @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +// GPP_B23 SCI +Method (_L17, 0, Serialized) +{ + Debug = Concatenate("GPE _L17: ", ToHexString(\_SB.PCI0.LPCB.EC0.WFNO)) + If (\_SB.PCI0.LPCB.EC0.ECOK) { + If (\_SB.PCI0.LPCB.EC0.WFNO == 1) { + Notify(\_SB.LID0, 0x80) + } + } +} diff --git a/src/mainboard/system76/oryp5/acpi/mainboard.asl b/src/mainboard/system76/oryp5/acpi/mainboard.asl new file mode 100644 index 0000000000..a319ae627c --- /dev/null +++ b/src/mainboard/system76/oryp5/acpi/mainboard.asl @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#define EC_GPE_SCI 0x17 /* GPP_B23 */ +#define EC_GPE_SWI 0x26 /* GPP_G6 */ +#define EC_COLOR_KEYBOARD 1 +#include <ec/system76/ec/acpi/ec.asl> + +Scope (\_SB) +{ + #include "sleep.asl" +} + +Scope (\_GPE) +{ + #include "gpe.asl" +} diff --git a/src/mainboard/system76/oryp5/acpi/sleep.asl b/src/mainboard/system76/oryp5/acpi/sleep.asl new file mode 100644 index 0000000000..f2b194c422 --- /dev/null +++ b/src/mainboard/system76/oryp5/acpi/sleep.asl @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* Method called from _PTS prior to enter sleep state */ +Method (MPTS, 1) +{ + \_SB.PCI0.LPCB.EC0.PTS (Arg0) +} + +/* Method called from _WAK prior to wakeup */ +Method (MWAK, 1) +{ + \_SB.PCI0.LPCB.EC0.WAK (Arg0) +} |