From 1769b10be0dc1c80bc0c38f640a3d20b02d7af5d Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 24 Mar 2026 23:42:27 +0530 Subject: [PATCH] mb/google/bluey: Lower CPU frequency to 710.4MHz for low-power boot In scenarios where the system is booting with a critical or low battery, lowering the initial CPU frequency helps reduce the instantaneous power draw, ensuring the battery can sustain the boot process while fast charging is being enabled. Changes: - clock.h: Replace 806MHz (0x2A) with 710.4MHz (0x25) based on 19.2MHz XO. - mainboard.c: Update handle_low_power_charging_boot() to use the new L-VAL and update the debug log accordingly. BUG=b:436391478 Change-Id: Ida30824e344a4613c797083711c3f6ee31f9694d Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/91838 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Jayvik Desai --- src/mainboard/google/bluey/mainboard.c | 4 ++-- src/soc/qualcomm/x1p42100/include/soc/clock.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/bluey/mainboard.c b/src/mainboard/google/bluey/mainboard.c index 1395c097dd..5bb9ecd21d 100644 --- a/src/mainboard/google/bluey/mainboard.c +++ b/src/mainboard/google/bluey/mainboard.c @@ -188,8 +188,8 @@ static void trigger_critical_battery_shutdown(void) */ static void handle_low_power_charging_boot(void) { - if (!pll_init_and_set(apss_ncc0, L_VAL_806MHz)) - printk(BIOS_DEBUG, "CPU Frequency set to 806MHz\n"); + if (!pll_init_and_set(apss_ncc0, L_VAL_710P4MHz)) + printk(BIOS_DEBUG, "CPU Frequency set to 710MHz\n"); enable_fast_battery_charging(); diff --git a/src/soc/qualcomm/x1p42100/include/soc/clock.h b/src/soc/qualcomm/x1p42100/include/soc/clock.h index b60ea039c8..fa3fe899ef 100644 --- a/src/soc/qualcomm/x1p42100/include/soc/clock.h +++ b/src/soc/qualcomm/x1p42100/include/soc/clock.h @@ -21,7 +21,7 @@ /* CPU PLL*/ #define L_VAL_2995P2MHz 0x9C #define L_VAL_1363P2MHz 0x47 -#define L_VAL_806MHz 0x2A +#define L_VAL_710P4MHz 0x25 /* DISP PLL */ #define L_VAL_1725MHz 0x59