From f2d30516315903ab23b19ccd7a3073fe21e5c164 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 29 Aug 2025 17:56:45 +0200 Subject: [PATCH] ec/lenovo/h8: Turn on PWR LED On warm reboot the PWR LED isn't automatically turned on by the EC. Turn it on in the ramstage code, which allows to see when the reboot has happened. TEST=PWR LED is on after warm reboot on Lenovo X220. Change-Id: Ia5fe3a52a6be622785c9588a94242ac0de0e19fa Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/88998 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/ec/lenovo/h8/h8.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 155a013bac..acf5ce5408 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -248,6 +248,12 @@ static void h8_enable(struct device *dev) ec_write(H8_CONFIG2, conf->config2); ec_write(H8_CONFIG3, conf->config3); + /* + * Reset LEDs to power on state. + * (Without this warm reboot leaves LEDs off) + */ + ec_write(H8_LED_CONTROL, H8_LED_CONTROL_ON | H8_LED_CONTROL_POWER_LED); + beepmask0 = conf->beepmask0; beepmask1 = conf->beepmask1;