coreboot/src/ec
Nicholas Chin a363007c3b ec/dell/mec5035: Route power button event to host
Currently, pressing the power button results in the EC powering off the
system without letting the OS cleanly execute its shutdown procedures.
Sending command 0x3e with an argument of 1 to the EC tells it to route
power button events to the host so that the OS can determine what to do.

This command was found in the ec/google/wilco code in coreboot, which is
used on Dell's Latitude Chromebooks. Based on the CONFIG_EC_GOOGLE_WILCO
help text, the "Wilco" ECs run a modified version of Dell's typical
Latitude EC firmware, so it is likely that the two implementations share
commands. Examining LPC traffic on the Latitude E6400 did show that
vendor firmware was sending a 0x3e command to the EC, and reimplementing
it in coreboot allowed power button events to be handled by the OS.

Change-Id: I5ded315270c0e1efbbc90cfa9d9d894b872e99a2
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84878
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
2025-11-19 13:59:08 +00:00
..
51nb/npce985la0dx
acpi ec/acpi/ec.c: Promote timeout messages to errors 2025-01-22 20:20:44 +00:00
apple/acpi
clevo/it5570e
compal/ene932
dasharo/ec ec/dasharo/ec: Add DTT power and battery participants 2025-06-06 13:13:59 +00:00
dell/mec5035 ec/dell/mec5035: Route power button event to host 2025-11-19 13:59:08 +00:00
google ec/google/chromeec: Add option to set keyboard backlight level at boot 2025-11-06 13:19:25 +00:00
hp/kbc1126
intel ec/intel: read board ID one time from EC per stage 2025-04-29 18:53:04 +00:00
kontron
lenovo ec/lenovo/h8: Turn on PWR LED 2025-09-03 18:03:05 +00:00
purism
quanta
roda/it8518
smsc/mec1308
starlabs/merlin ec/starlabs/merlin: Fix get_ec_value_from_option() value validation 2025-11-19 09:16:33 +00:00
system76/ec ec/system76/ec: Add config for 2nd fan without GPU 2025-05-14 18:08:44 +00:00
ec.h