coreboot-kgpe-d16/src/mainboard/google/cyan
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
spd mb/google/cyan/spd/spd.c: Fix module part number transfer 2018-04-24 17:12:51 +00:00
variants mb/google/*: Add a few VBT files 2018-06-27 15:38:25 +00:00
acpi_tables.c google/edgar: add new board as variant of cyan baseboard 2017-09-16 22:31:32 +00:00
board_info.txt google/cyan: convert to variant configuration 2017-09-15 02:36:13 +00:00
chromeos.c google/edgar: add new board as variant of cyan baseboard 2017-09-16 22:31:32 +00:00
chromeos.fmd google/cyan: Increase RO coreboot size on flash 2017-08-25 19:02:40 +00:00
cmos.layout mb/*/*/cmos.layout: Fix the values for the console level 2018-01-26 17:28:56 +00:00
com_init.c
dsdt.asl google/terra: add new board as variant of cyan baseboard 2017-09-21 17:31:21 +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
irqroute.c
irqroute.h
Kconfig mb/google/*: Add a few VBT files 2018-06-27 15:38:25 +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 google/cyan: fix variant memory/silicon init params override 2017-10-08 22:34:47 +00:00
romstage.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
smihandler.c google/edgar: add new board as variant of cyan baseboard 2017-09-16 22:31:32 +00:00
w25q64.c