mb/google/fatcat: Enable ChromeOS EC LEDs in romstage
Initialize the ChromeOS EC LEDs during the bootblock phase for the fatcat mainboard. This ensures the LEDs are powered on early in the boot process to provide visual feedback to the user. This covers edge cases where the lightbar was left in an OFF state by AP firmware and no EC reset occurred to restore defaults. TEST=Boot moonstome and verify the LEDs turns on during the bootblock stage. Change-Id: I24ce78e4a30ea8fce7d7a90e01525c328db7e325 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91392 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
2a821d8db6
commit
086d3a3232
1 changed files with 8 additions and 0 deletions
|
|
@ -48,6 +48,14 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
|
|||
|
||||
void platform_romstage_pre_mem(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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue