From cfb0d8a144a344538caeb9ab2021256bfe7948ba Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Wed, 17 Dec 2025 12:28:34 +0530 Subject: [PATCH] mb/google/bluey: Enable PD negotiation when battery is missing Update the qclib_mainboard_override hook to enable Power Delivery negotiation if no battery is detected, even in normal boot mode. This allows the system to negotiate higher power levels when running solely on AC power. BUG=b:457566143 TEST=Verify different boot modes on Google/Quenbi. Change-Id: If1660e4c50575eb4b6d5af606c35accdb4c67982 Signed-off-by: Kapil Porwal Reviewed-on: https://review.coreboot.org/c/coreboot/+/90539 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/mainboard/google/bluey/romstage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/bluey/romstage.c b/src/mainboard/google/bluey/romstage.c index 63136a91f1..3c5b307fd8 100644 --- a/src/mainboard/google/bluey/romstage.c +++ b/src/mainboard/google/bluey/romstage.c @@ -55,7 +55,10 @@ static enum boot_mode_t set_boot_mode(void) int qclib_mainboard_override(struct qclib_cb_if_table *table) { - if (set_boot_mode() != LB_BOOT_MODE_NORMAL) + if (!CONFIG(EC_GOOGLE_CHROMEEC)) + return 0; + + if ((set_boot_mode() != LB_BOOT_MODE_NORMAL) || !google_chromeec_is_battery_present()) table->global_attributes |= QCLIB_GA_ENABLE_PD_NEGOTIATION; else table->global_attributes &= ~QCLIB_GA_ENABLE_PD_NEGOTIATION;