mb/google/bluey: Disable lightbar during low-power charging boot
Turn off the lightbar when the system boots into Low-Battery with
Charger or Off-Mode Charging states.
This ensures that the external lightbar does not provide conflicting
visual signals while the built-in display is showing the charging
animation. Additionally, this prevents unnecessary power consumption
from the lightbar in these power-restricted modes.
BUG=b:477531197
TEST=Boot bluey in off-mode charging; verify lightbar is disabled.
Boot bluey normally; verify lightbar functions as expected.
Change-Id: Ice64d700aee82c780f872a3cb18f8a873e9189f5
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91378
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
b68ba24244
commit
d39f406f55
1 changed files with 9 additions and 2 deletions
|
|
@ -184,9 +184,16 @@ static void mainboard_init(struct device *dev)
|
|||
if (get_boot_mode() == LB_BOOT_MODE_LOW_BATTERY)
|
||||
trigger_critical_battery_shutdown();
|
||||
|
||||
/* Skip mainboard initialization if boot mode is "low-battery" or "off-mode charging"*/
|
||||
if (is_low_power_boot_with_charger())
|
||||
/* Skip mainboard initialization if boot mode is "low-battery" or "off-mode charging" */
|
||||
if (is_low_power_boot_with_charger()) {
|
||||
/* Disable the lightbar for Low-Battery or Off-Mode charging sequences.
|
||||
* This maintains visual consistency between the built-in display
|
||||
* indicators and the external lightbar.
|
||||
*/
|
||||
if (CONFIG(EC_GOOGLE_CHROMEEC))
|
||||
google_chromeec_lightbar_off();
|
||||
return;
|
||||
}
|
||||
|
||||
gpi_firmware_load(QUP_0_GSI_BASE);
|
||||
gpi_firmware_load(QUP_1_GSI_BASE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue