coreboot-kgpe-d16/src/mainboard/google/butterfly
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
acpi_tables.c mb/*/*/acpi_tables.c: Remove unneeded includes 2018-06-11 08:52:53 +00:00
board_info.txt Add aliases for Chromebooks in board_info 2014-05-19 14:57:54 +02:00
chromeos.c mainboard: Get rid of device_t 2018-06-09 17:24:07 +00:00
chromeos.fmd chromeos.fmd: Mark RW_LEGACY as CBFS 2016-04-05 13:37:31 +02:00
cmos.default mainboard: Remove last_boot NVRAM option 2015-11-05 02:21:52 +01:00
cmos.layout mb/*/*/cmos.layout: Fix coding style 2018-06-28 09:25:30 +00:00
devicetree.cb intel: Remove pstate_coord_type. 2015-05-28 11:19:21 +02:00
dsdt.asl intel bd82x6x/lynxpoint systems: Update ACPI thermal zone handler 2018-06-03 14:19:58 +00:00
ec.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ec.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gpio.c southbridge/intel/bd82x6x: Use common gpio.c 2016-02-18 01:35:57 +01:00
hda_verb.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig security/tpm: Unify the coreboot TPM software stack 2018-06-04 20:33:07 +00:00
Kconfig.name mb/google: Add Chromebook marketing names 2017-11-17 21:33:25 +00:00
mainboard.c mb/google: Get rid of device_t 2018-05-08 18:31:26 +00:00
mainboard_smi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
onboard.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
romstage.c Revert "sb/intel/{bd82x6,ibexpeak}: Move RCBA macros to a common location" 2018-06-21 15:50:16 +00:00
thermal.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00