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 <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91114 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
546707da25
commit
1472a02377
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue