From 1472a023779450cad64d12a121bed49972e994ef Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 6 Feb 2026 10:27:32 +0530 Subject: [PATCH] mb/google/bluey: Use PLATFORM_POST_RENDER_DELAY_SEC for battery shutdown Replace the local LOW_BATTERY_SHUTDOWN_DELAY_SEC macro with the newly introduced, globally configurable PLATFORM_POST_RENDER_DELAY_SEC Kconfig. This aligns the bluey mainboard with the shared platform delay logic, ensuring a consistent user experience across products while allowing easier adjustment of the shutdown/teardown timing buffer. TEST=Verified build and boot on bluey; critical battery shutdown still respects the intended 5-second delay (as per default Kconfig). Change-Id: I1ddab276e797b793974e0205a91ba832f3085ead Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/91114 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal --- src/mainboard/google/bluey/mainboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mainboard/google/bluey/mainboard.c b/src/mainboard/google/bluey/mainboard.c index b12edfdabe..5b6278b3a0 100644 --- a/src/mainboard/google/bluey/mainboard.c +++ b/src/mainboard/google/bluey/mainboard.c @@ -30,8 +30,6 @@ #define USB3_MODE_NORMAL_VAL 0x21 #define USB3_MODE_FLIP_VAL 0x23 -#define LOW_BATTERY_SHUTDOWN_DELAY_SEC 5 - void mainboard_usb_typec_configure(uint8_t port_num, bool inverse_polarity) { if (!CONFIG(MAINBOARD_HAS_PS8820_RETIMER)) @@ -166,7 +164,7 @@ static void trigger_critical_battery_shutdown(void) elog_add_event_byte(ELOG_TYPE_LOW_BATTERY_INDICATOR, ELOG_FW_ISSUE_SHUTDOWN); /* Allow time for the log to flush and the user to see the LED change */ - delay(LOW_BATTERY_SHUTDOWN_DELAY_SEC); + delay(CONFIG_PLATFORM_POST_RENDER_DELAY_SEC); google_chromeec_ap_poweroff(); }