soc/intel/alderlake: Display low battery message on screen
This commit adds a function ux_inform_user_of_poweroff_operation to display a message on the screen when the system is powering off due to critically low battery. The message is centered on the screen and displays a localized string "Battery critically low. Shutting down.". If no localized string is found, a default English message is displayed. This implementation relies on CHROMEOS_ENABLE_ESOL Kconfig which is used to render text message for early sign-of-life. BUG=b:339673254 TEST=Able to capture the eventlog for low battery boot event. Change-Id: I3b24d2c89ade8cc62b7e47c487d52d47b7f3376d Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86224 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f8381b9023
commit
e5949cfef8
2 changed files with 6 additions and 0 deletions
|
|
@ -32,3 +32,8 @@ bool ux_inform_user_of_update_operation(const char *name)
|
|||
{
|
||||
return ux_inform_user_of_operation(name, UX_LOCALE_MSG_MEMORY_TRAINING);
|
||||
}
|
||||
|
||||
bool ux_inform_user_of_poweroff_operation(const char *name)
|
||||
{
|
||||
return ux_inform_user_of_operation(name, UX_LOCALE_MSG_LOW_BATTERY);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,6 @@
|
|||
#define _SOC_INTEL_ALDERLAKE_ROMSTAGE_UX_H_
|
||||
|
||||
bool ux_inform_user_of_update_operation(const char *name);
|
||||
bool ux_inform_user_of_poweroff_operation(const char *name);
|
||||
|
||||
#endif /* _SOC_INTEL_ALDERLAKE_ROMSTAGE_UX_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue