diff options
author | Furquan Shaikh <furquan@google.com> | 2018-07-25 08:49:23 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-07-25 18:52:40 +0000 |
commit | d7b88dcbcd1a8c58cb7a4c806df7bb8eb23899ae (patch) | |
tree | 2083df7df9a1dc348d2925e8f378799101010c02 /src | |
parent | e3816b4bc99fa8a5385943e1b47b4269a85b1877 (diff) | |
download | coreboot-d7b88dcbcd1a8c58cb7a4c806df7bb8eb23899ae.tar.xz |
mb/google/x86-boards: Get rid of power button device in coreboot
As per the ACPI specification, there are two types of power button
devices:
1. Fixed hardware power button
2. Generic hardware power button
Fixed hardware power button is added by the OSPM if POWER_BUTTON flag
is not set in FADT by the BIOS. This device has its programming model
in PM1x_EVT_BLK. All ACPI compliant OSes are expected to add this
power button device by default if the power button FADT flag is not
set.
On the other hand, generic hardware power button can be used by
platforms if fixed register space cannot be used for the power button
device. In order to support this, power button device object with HID
PNP0C0C is expected to be added to ACPI tables. Additionally,
POWER_BUTTON flag should be set to indicate the presence of control
method for power button.
Chrome EC mainboards implemented the generic hardware power button in
a broken manner i.e. power button object with HID PNP0C0C is added to
ACPI however none of the boards set POWER_BUTTON flag in FADT. This
results in Linux kernel adding both fixed hardware power button as
well as generic hardware power button to the list of devices present
on the system. Though this is mostly harmless, it is logically
incorrect and can confuse any userspace utilities scanning the ACPI
devices.
This change gets rid of the generic hardware power button from all
google mainboards and relies completely on the fixed hardware power
button.
BUG=b:110913245
TEST=Verified that fixed hardware power button still works correctly
on nautilus.
Change-Id: I733e69affc82ed77aa79c5eca6654aaa531476ca
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/27272
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/auron/acpi/mainboard.asl | 8 | ||||
-rw-r--r-- | src/mainboard/google/beltino/acpi/mainboard.asl | 8 | ||||
-rw-r--r-- | src/mainboard/google/butterfly/acpi/mainboard.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/cyan/acpi/mainboard.asl | 9 | ||||
-rw-r--r-- | src/mainboard/google/eve/dsdt.asl | 4 | ||||
-rw-r--r-- | src/mainboard/google/fizz/dsdt.asl | 4 | ||||
-rw-r--r-- | src/mainboard/google/glados/acpi/mainboard.asl | 8 | ||||
-rw-r--r-- | src/mainboard/google/jecht/acpi/mainboard.asl | 8 | ||||
-rw-r--r-- | src/mainboard/google/kahlee/dsdt.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/gpe.asl | 3 | ||||
-rw-r--r-- | src/mainboard/google/link/acpi/mainboard.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/parrot/acpi/mainboard.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/poppy/dsdt.asl | 4 | ||||
-rw-r--r-- | src/mainboard/google/rambi/acpi/mainboard.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/slippy/acpi/mainboard.asl | 8 | ||||
-rw-r--r-- | src/mainboard/google/stout/acpi/mainboard.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/zoombini/dsdt.asl | 4 |
17 files changed, 0 insertions, 98 deletions
diff --git a/src/mainboard/google/auron/acpi/mainboard.asl b/src/mainboard/google/auron/acpi/mainboard.asl index 2584015435..907590dcb5 100644 --- a/src/mainboard/google/auron/acpi/mainboard.asl +++ b/src/mainboard/google/auron/acpi/mainboard.asl @@ -16,14 +16,6 @@ #include <variant/onboard.h> -Scope (\_SB) -{ - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } -} - Scope (\_SB.PCI0.RP01) { Device (WLAN) diff --git a/src/mainboard/google/beltino/acpi/mainboard.asl b/src/mainboard/google/beltino/acpi/mainboard.asl index e6f931e5ad..692d635ac6 100644 --- a/src/mainboard/google/beltino/acpi/mainboard.asl +++ b/src/mainboard/google/beltino/acpi/mainboard.asl @@ -16,14 +16,6 @@ #include <onboard.h> -Scope (\_SB) -{ - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } -} - /* * LAN connected to Root Port 3, becomes Root Port 1 after coalesce */ diff --git a/src/mainboard/google/butterfly/acpi/mainboard.asl b/src/mainboard/google/butterfly/acpi/mainboard.asl index 8ecc128dcf..4721f2a0d1 100644 --- a/src/mainboard/google/butterfly/acpi/mainboard.asl +++ b/src/mainboard/google/butterfly/acpi/mainboard.asl @@ -27,11 +27,6 @@ Scope (\_SB) { } } - Device (PWRB) - { - Name (_HID, EisaId("PNP0C0C")) - } - Device (TPAD) { Name (_ADR, 0x0) diff --git a/src/mainboard/google/cyan/acpi/mainboard.asl b/src/mainboard/google/cyan/acpi/mainboard.asl index 1859fa87f7..9f27ac9adb 100644 --- a/src/mainboard/google/cyan/acpi/mainboard.asl +++ b/src/mainboard/google/cyan/acpi/mainboard.asl @@ -17,15 +17,6 @@ #include <variant/onboard.h> -Scope (\_SB) -{ - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - Name (_UID, 1) - } -} - Scope (\_SB.GPNC) { Method (_AEI, 0, Serialized) // _AEI: ACPI Event Interrupts diff --git a/src/mainboard/google/eve/dsdt.asl b/src/mainboard/google/eve/dsdt.asl index 2882d50f19..9382e356ed 100644 --- a/src/mainboard/google/eve/dsdt.asl +++ b/src/mainboard/google/eve/dsdt.asl @@ -36,10 +36,6 @@ DefinitionBlock( Scope (\_SB) { - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - } Device (PCI0) { #include <soc/intel/skylake/acpi/systemagent.asl> diff --git a/src/mainboard/google/fizz/dsdt.asl b/src/mainboard/google/fizz/dsdt.asl index 69d915805c..dc2fcfa321 100644 --- a/src/mainboard/google/fizz/dsdt.asl +++ b/src/mainboard/google/fizz/dsdt.asl @@ -36,10 +36,6 @@ DefinitionBlock( Scope (\_SB) { - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - } Device (PCI0) { #include <soc/intel/skylake/acpi/systemagent.asl> diff --git a/src/mainboard/google/glados/acpi/mainboard.asl b/src/mainboard/google/glados/acpi/mainboard.asl index 550e8a797d..22c7427514 100644 --- a/src/mainboard/google/glados/acpi/mainboard.asl +++ b/src/mainboard/google/glados/acpi/mainboard.asl @@ -13,13 +13,5 @@ * GNU General Public License for more details. */ -Scope (\_SB) -{ - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - } -} - /* Variant-specific ACPI, including USB port defs */ #include <variant/acpi/mainboard.asl> diff --git a/src/mainboard/google/jecht/acpi/mainboard.asl b/src/mainboard/google/jecht/acpi/mainboard.asl index 4b2d9ca311..bf6070e81f 100644 --- a/src/mainboard/google/jecht/acpi/mainboard.asl +++ b/src/mainboard/google/jecht/acpi/mainboard.asl @@ -16,14 +16,6 @@ #include <mainboard/google/jecht/onboard.h> -Scope (\_SB) -{ - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } -} - /* * LAN connected to Root Port 3, becomes Root Port 1 after coalesce */ diff --git a/src/mainboard/google/kahlee/dsdt.asl b/src/mainboard/google/kahlee/dsdt.asl index e5276d37c0..14f0d409c2 100644 --- a/src/mainboard/google/kahlee/dsdt.asl +++ b/src/mainboard/google/kahlee/dsdt.asl @@ -56,11 +56,6 @@ DefinitionBlock ( /* IRQ Routing mapping for this platform (in \_SB scope) */ #include <variant/acpi/routing.asl> - Device(PWRB) { - Name(_HID, EISAID("PNP0C0C")) - Name(_UID, 0xAA) - } - /* Describe the SOC */ #include <soc.asl> diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/gpe.asl b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/gpe.asl index 9dbbde557c..dc7c804faa 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/gpe.asl +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/gpe.asl @@ -19,7 +19,6 @@ Scope (\_GPE) Method (_L08) { /* DBGO ("\\_GPE\\_L08\n") */ - Notify (\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ } /* EHCI USB controller PME# SCIMAP24*/ @@ -27,7 +26,6 @@ Scope (\_GPE) { /* DBGO ("\\_GPE\\_L18\n") */ Notify (\_SB.PCI0.EHC0, 0x02) /* NOTIFY_DEVICE_WAKE */ - Notify (\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ } /* XHCI USB controller PME# SCIMAP56*/ @@ -35,6 +33,5 @@ Scope (\_GPE) { /* DBGO ("\\_GPE\\_L1F\n") */ Notify (\_SB.PCI0.XHC0, 0x02) /* NOTIFY_DEVICE_WAKE */ - Notify (\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ } } /* End Scope GPE */ diff --git a/src/mainboard/google/link/acpi/mainboard.asl b/src/mainboard/google/link/acpi/mainboard.asl index aa33d14468..6a2d890802 100644 --- a/src/mainboard/google/link/acpi/mainboard.asl +++ b/src/mainboard/google/link/acpi/mainboard.asl @@ -17,11 +17,6 @@ #include <mainboard/google/link/onboard.h> Scope (\_SB) { - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } - Device (TPAD) { Name (_ADR, 0x0) diff --git a/src/mainboard/google/parrot/acpi/mainboard.asl b/src/mainboard/google/parrot/acpi/mainboard.asl index 2a5c92f327..4906efcdb5 100644 --- a/src/mainboard/google/parrot/acpi/mainboard.asl +++ b/src/mainboard/google/parrot/acpi/mainboard.asl @@ -41,11 +41,6 @@ Scope (\_SB) { } } - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } - Device (TPAD) { Name (_ADR, 0x0) diff --git a/src/mainboard/google/poppy/dsdt.asl b/src/mainboard/google/poppy/dsdt.asl index a922d10f97..5b776c9ac3 100644 --- a/src/mainboard/google/poppy/dsdt.asl +++ b/src/mainboard/google/poppy/dsdt.asl @@ -36,10 +36,6 @@ DefinitionBlock( Scope (\_SB) { - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - } Device (PCI0) { /* Image processing unit */ diff --git a/src/mainboard/google/rambi/acpi/mainboard.asl b/src/mainboard/google/rambi/acpi/mainboard.asl index e75357d20b..e9422b1db2 100644 --- a/src/mainboard/google/rambi/acpi/mainboard.asl +++ b/src/mainboard/google/rambi/acpi/mainboard.asl @@ -18,11 +18,6 @@ Scope (\_SB) { - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - Name (_UID, 1) - } #ifdef BOARD_TRACKPAD_IRQ /* Wake device for touchpad */ Device (TPAD) diff --git a/src/mainboard/google/slippy/acpi/mainboard.asl b/src/mainboard/google/slippy/acpi/mainboard.asl index f12a440661..e9ade244cf 100644 --- a/src/mainboard/google/slippy/acpi/mainboard.asl +++ b/src/mainboard/google/slippy/acpi/mainboard.asl @@ -14,14 +14,6 @@ #include <onboard.h> -Scope (\_SB) -{ - Device (PWRB) - { - Name(_HID, EisaId("PNP0C0C")) - } -} - #include <variant/acpi/mainboard.asl> /* USB port entries */ diff --git a/src/mainboard/google/stout/acpi/mainboard.asl b/src/mainboard/google/stout/acpi/mainboard.asl index 194ec6395e..92f160deed 100644 --- a/src/mainboard/google/stout/acpi/mainboard.asl +++ b/src/mainboard/google/stout/acpi/mainboard.asl @@ -33,9 +33,4 @@ Scope (\_SB) Store (Arg0, \_SB.PCI0.LPCB.EC0.HWLO) } } - - Device (PWRB) - { - Name (_HID, EisaId("PNP0C0C")) - } } diff --git a/src/mainboard/google/zoombini/dsdt.asl b/src/mainboard/google/zoombini/dsdt.asl index e892b47fae..31409906d0 100644 --- a/src/mainboard/google/zoombini/dsdt.asl +++ b/src/mainboard/google/zoombini/dsdt.asl @@ -37,10 +37,6 @@ DefinitionBlock( #include <soc/intel/cannonlake/acpi/cpu.asl> Scope (\_SB) { - Device (PWRB) - { - Name (_HID, EisaId ("PNP0C0C")) - } Device (PCI0) { #include <soc/intel/cannonlake/acpi/northbridge.asl> |