soc/intel/pantherlake: Add early shutdown notification hook
This commit display UX message for low-battery shutdown using platform_display_early_shutdown_notification(). This commit also enables the HAVE_ESOL_SUPPORT_FOR_LOW_BATTERY_INDICATOR Kconfig option, which is required for displaying the VGA text message during early shutdown. BUG=b:339673254 TEST=Verified low battery boot event logging and controlled shutdown. Change-Id: I45c0fb07b984fcde6209631612cb8b4a08ac2041 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86476 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jayvik Desai <jayvik@google.com>
This commit is contained in:
parent
2f57986700
commit
80db7cdae0
2 changed files with 9 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ config SOC_INTEL_PANTHERLAKE_BASE
|
|||
select FSPS_HAS_ARCH_UPD
|
||||
select GENERIC_GPIO_LIB
|
||||
select HAVE_DEBUG_RAM_SETUP
|
||||
select HAVE_ESOL_SUPPORT_FOR_LOW_BATTERY_INDICATOR if CHROMEOS_ENABLE_ESOL
|
||||
select HAVE_FSP_GOP
|
||||
select HAVE_FSP_LOGO_SUPPORT if RUN_FSP_GOP
|
||||
select HAVE_HYPERTHREADING
|
||||
|
|
|
|||
|
|
@ -289,6 +289,14 @@ static void fill_fspm_vr_config_params(FSP_M_CONFIG *m_cfg,
|
|||
m_cfg->EnableFastVmode[i] = 0;
|
||||
}
|
||||
|
||||
#if CONFIG(PLATFORM_HAS_EARLY_LOW_BATTERY_INDICATOR)
|
||||
void platform_display_early_shutdown_notification(void *arg)
|
||||
{
|
||||
FSPM_UPD *mupd = arg;
|
||||
ux_inform_user_of_poweroff_operation("low-battery shutdown", mupd);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
||||
const struct soc_intel_pantherlake_config *config)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue