From 2a821d8db63aee0556024e143f71f5e4e0198680 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 24 Feb 2026 09:35:16 +0530 Subject: [PATCH] mb/google/bluey: Early enablement of lightbar Initialize and turn on the Chrome EC lightbar during the early romstage initialization phase. This ensures that the lightbar is active and ready to provide visual feedback as early as possible in the boot process. This covers edge cases where the lightbar was left in an OFF state by AP firmware and no EC reset occurred to restore defaults. BUG=b:477531197 TEST=Boot bluey and verify the lightbar turns on during the early romstage. Change-Id: I9336acc83d0455c21378ef7cb77939d4d5d54250 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/91382 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal --- src/mainboard/google/bluey/romstage.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainboard/google/bluey/romstage.c b/src/mainboard/google/bluey/romstage.c index a3806668b7..a415228e8b 100644 --- a/src/mainboard/google/bluey/romstage.c +++ b/src/mainboard/google/bluey/romstage.c @@ -126,6 +126,14 @@ static void early_setup_usb(void) void platform_romstage_main(void) { + /* + * Early initialization of the Chrome EC lightbar. + * Ensures visual continuity if the AP firmware disabled the lightbar + * in a previous boot without a subsequent EC reset. + */ + if (CONFIG(EC_GOOGLE_CHROMEEC)) + google_chromeec_lightbar_on(); + /* * Only alert the user (set LED to red in color) if the lid is closed and the battery * is critically low without AC power.