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 <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91382
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
Subrata Banik 2026-02-24 09:35:16 +05:30
commit 2a821d8db6

View file

@ -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.