coreboot-kgpe-d16/src/mainboard/google/auron
Furquan Shaikh d7b88dcbcd 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>
2018-07-25 18:52:40 +00:00
..
acpi mb/google/x86-boards: Get rid of power button device in coreboot 2018-07-25 18:52:40 +00:00
variants google/lulu,gandof: set kb backlight on boot 2017-09-16 22:34:11 +00:00
acpi_tables.c Add/Combine Broadwell Chromebooks using variant board scheme 2016-12-22 18:37:56 +01:00
board_info.txt
chromeos.c vboot: Assume EC_SOFTWARE_SYNC and VIRTUAL_DEV_SWITCH by default 2017-03-28 22:15:46 +02:00
chromeos.fmd Google Mainboards: Increase RO coreboot size on flash 2016-07-15 00:37:52 +02:00
cmos.layout mb/*/*/cmos.layout: Fix the values for the console level 2018-01-26 17:28:56 +00:00
dsdt.asl intel bd82x6x/lynxpoint systems: Update ACPI thermal zone handler 2018-06-03 14:19:58 +00:00
ec.c ec/google/chromeec: Add library function google_chromeec_events_init 2017-10-08 19:38:28 +00:00
ec.h mainboards: Remove unused EC event for thermal overload 2017-07-01 02:47:30 +00:00
fadt.c acpi: fix FADT header version for ChromeOS devices 2017-05-01 01:08:18 +02:00
hda_verb.c Add/Combine Broadwell Chromebooks using variant board scheme 2016-12-22 18:37:56 +01:00
Kconfig security/tpm: Unify the coreboot TPM software stack 2018-06-04 20:33:07 +00:00
Kconfig.name mainboard/google: Comment variant names in Kconfig 2018-05-04 01:03:49 +00:00
mainboard.c mb/google: Get rid of device_t 2018-05-08 18:31:26 +00:00
Makefile.inc Update files with no newline at the end 2017-07-24 15:08:16 +00:00
romstage.c chromeec: Remove checks for EC in RO 2017-10-04 20:55:12 +00:00
smihandler.c mainboard/[g-l]: add IS_ENABLED() around Kconfig symbol references 2017-07-06 00:19:56 +00:00
variant.h pci: Move inline PCI functions to pci_ops.h 2018-04-20 13:03:54 +00:00