vboot: add physical recovery switch support
PHYSICAL_REC_SWITCH is set n by default and y for panther and stumpy. BUG=none BRANCH=ToT TEST=Built nyan_blaze using vboot1/2. Built falco, lumpy, nyan, blaze, parrot, rambi, samus, storm, pinky with default configuration. panther and stumpy are not tested because they currently don't build on ToT. Change-Id: Ic45f78708aaa7e485d2ab459fd1948524edb412f Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/227940 Reviewed-on: https://chromium-review.googlesource.com/229602 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
7ccba49a7c
commit
edb2ba347b
5 changed files with 13 additions and 4 deletions
|
|
@ -20,6 +20,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||
select CACHE_ROM
|
||||
select MARK_GRAPHICS_MEM_WRCOMB
|
||||
select MONOTONIC_TIMER_MSR
|
||||
select PHYSICAL_REC_SWITCH
|
||||
|
||||
config VBOOT_RAMSTAGE_INDEX
|
||||
hex
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||
select SOUTHBRIDGE_INTEL_BD82X6X
|
||||
select SUPERIO_ITE_IT8772F
|
||||
select EARLY_CBMEM_INIT
|
||||
select PHYSICAL_REC_SWITCH
|
||||
|
||||
config MAINBOARD_DIR
|
||||
string
|
||||
|
|
|
|||
|
|
@ -154,5 +154,11 @@ config NO_TPM_RESUME
|
|||
boards, booting Windows will break if the TPM resume command
|
||||
is sent during an S3 resume.
|
||||
|
||||
config PHYSICAL_REC_SWITCH
|
||||
bool "Physical recovery switch is present"
|
||||
default n
|
||||
help
|
||||
Whether this platform has a physical recovery switch
|
||||
|
||||
source src/vendorcode/google/chromeos/vboot1/Kconfig
|
||||
source src/vendorcode/google/chromeos/vboot2/Kconfig
|
||||
|
|
@ -227,10 +227,10 @@ static void vboot_invoke_wrapper(struct vboot_handoff *vboot_handoff)
|
|||
*iflags |= VB_INIT_FLAG_SW_WP_ENABLED;
|
||||
if (CONFIG_VIRTUAL_DEV_SWITCH)
|
||||
*iflags |= VB_INIT_FLAG_VIRTUAL_DEV_SWITCH;
|
||||
if (CONFIG_EC_SOFTWARE_SYNC) {
|
||||
if (CONFIG_EC_SOFTWARE_SYNC)
|
||||
*iflags |= VB_INIT_FLAG_EC_SOFTWARE_SYNC;
|
||||
if (!CONFIG_PHYSICAL_REC_SWITCH)
|
||||
*iflags |= VB_INIT_FLAG_VIRTUAL_REC_SWITCH;
|
||||
}
|
||||
if (CONFIG_VBOOT_EC_SLOW_UPDATE)
|
||||
*iflags |= VB_INIT_FLAG_EC_SLOW_UPDATE;
|
||||
if (CONFIG_VBOOT_OPROM_MATTERS) {
|
||||
|
|
|
|||
|
|
@ -104,10 +104,11 @@ static void fill_vboot_handoff(struct vboot_handoff *vboot_handoff,
|
|||
/* TODO: Set these in depthcharge */
|
||||
if (CONFIG_VIRTUAL_DEV_SWITCH)
|
||||
vb_sd->flags |= VBSD_HONOR_VIRT_DEV_SWITCH;
|
||||
if (CONFIG_EC_SOFTWARE_SYNC) {
|
||||
if (CONFIG_EC_SOFTWARE_SYNC)
|
||||
vb_sd->flags |= VBSD_EC_SOFTWARE_SYNC;
|
||||
if (!CONFIG_PHYSICAL_REC_SWITCH)
|
||||
vb_sd->flags |= VBSD_BOOT_REC_SWITCH_VIRTUAL;
|
||||
}
|
||||
|
||||
/* In vboot1, VBSD_FWB_TRIED is
|
||||
* set only if B is booted as explicitly requested. Therefore, if B is
|
||||
* booted because A was found bad, the flag should not be set. It's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue