mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
mb/clevo/tgl-u,adl-p: clear recovery reason on each boot via BS entry
Change-Id: I07d49ccb642c4ec5d9ac92d9be0203935a6f1ced Upstream-Status: Inappropriate [Dasharo downstream] Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
@@ -102,6 +102,7 @@ config VBOOT
|
||||
select VBOOT_ALWAYS_ENABLE_DISPLAY
|
||||
select VBOOT_NO_BOARD_SUPPORT
|
||||
select HAS_RECOVERY_MRC_CACHE
|
||||
select VBOOT_CLEAR_RECOVERY_EACH_BOOT
|
||||
|
||||
config VBOOT_SLOTS_RW_A
|
||||
default y if VBOOT
|
||||
|
||||
@@ -159,16 +159,9 @@ static void mainboard_enable(struct device *dev)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mainboard_final(void *chip_info)
|
||||
{
|
||||
if (CONFIG(VBOOT))
|
||||
vboot_clear_recovery_request();
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mainboard_enable,
|
||||
.init = mainboard_init,
|
||||
.final = mainboard_final,
|
||||
};
|
||||
|
||||
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
||||
|
||||
@@ -106,6 +106,7 @@ config VBOOT
|
||||
select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
|
||||
select GBB_FLAG_DISABLE_FWMP
|
||||
select HAS_RECOVERY_MRC_CACHE
|
||||
select VBOOT_CLEAR_RECOVERY_EACH_BOOT
|
||||
|
||||
config VBOOT_SLOTS_RW_A
|
||||
default y if VBOOT
|
||||
|
||||
@@ -160,12 +160,6 @@ static void mainboard_enable(struct device *dev)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mainboard_final(void *chip_info)
|
||||
{
|
||||
if (CONFIG(VBOOT))
|
||||
vboot_clear_recovery_request();
|
||||
}
|
||||
|
||||
void mainboard_update_soc_chip_config(struct soc_intel_tigerlake_config *config)
|
||||
{
|
||||
if (get_sleep_type_option() == SLEEP_TYPE_OPTION_S3)
|
||||
@@ -177,5 +171,4 @@ void mainboard_update_soc_chip_config(struct soc_intel_tigerlake_config *config)
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mainboard_enable,
|
||||
.init = init_mainboard,
|
||||
.final = mainboard_final,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user