From d39f406f55dd5f80f30a762fd4401f92390e09bb Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 23 Feb 2026 09:01:32 +0530 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/91378 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal --- src/mainboard/google/bluey/mainboard.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/bluey/mainboard.c b/src/mainboard/google/bluey/mainboard.c index 099f825344..89a2a2a0eb 100644 --- a/src/mainboard/google/bluey/mainboard.c +++ b/src/mainboard/google/bluey/mainboard.c @@ -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);