diff options
author | Michał Żygowski <michal.zygowski@3mdeb.com> | 2022-05-09 16:19:35 +0200 |
---|---|---|
committer | Michał Żygowski <michal.zygowski@3mdeb.com> | 2022-07-11 09:00:32 +0000 |
commit | 6db287a5d9cf4124eb3370727f341e69b4bf7197 (patch) | |
tree | a2eb77c01968607a0f2b2aac32a7bd189a3a6822 /src/mainboard/msi/ms7d25 | |
parent | ffec028b5478a354f538916f2780990f6fbd20ad (diff) |
mainboard/msi/ms7d25: Add default vboot configuration
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Change-Id: I9590a33e828906de083cb23c8b647ed2da0750ee
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64222
Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/msi/ms7d25')
-rw-r--r-- | src/mainboard/msi/ms7d25/Kconfig | 22 | ||||
-rw-r--r-- | src/mainboard/msi/ms7d25/vboot-rwab.fmd | 48 |
2 files changed, 70 insertions, 0 deletions
diff --git a/src/mainboard/msi/ms7d25/Kconfig b/src/mainboard/msi/ms7d25/Kconfig index daef6c9b65..0c8130fbfe 100644 --- a/src/mainboard/msi/ms7d25/Kconfig +++ b/src/mainboard/msi/ms7d25/Kconfig @@ -49,4 +49,26 @@ config CBFS_SIZE hex default 0x1000000 +config VBOOT + select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC + select GBB_FLAG_DISABLE_FWMP + select GBB_FLAG_DISABLE_LID_SHUTDOWN + select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC + select VBOOT_ALWAYS_ENABLE_DISPLAY + select VBOOT_NO_BOARD_SUPPORT + select HAS_RECOVERY_MRC_CACHE + +config VBOOT_SLOTS_RW_AB + default y if VBOOT + +config FMDFILE + string + default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab.fmd" if VBOOT && VBOOT_SLOTS_RW_AB + +# gen_test_hwid.sh script doesn't like parentheses in the MAINBOARD_PART_NUMBER +# Override the GBB_HWID +config GBB_HWID + string + default "MSI_MS7D25" + endif diff --git a/src/mainboard/msi/ms7d25/vboot-rwab.fmd b/src/mainboard/msi/ms7d25/vboot-rwab.fmd new file mode 100644 index 0000000000..b4dc044da6 --- /dev/null +++ b/src/mainboard/msi/ms7d25/vboot-rwab.fmd @@ -0,0 +1,48 @@ +FLASH 32M { + SI_ALL 4M { + SI_DESC 4K + SI_ME + } + + UNUSED 12M + + RW_MISC 320K { + UNIFIED_MRC_CACHE(PRESERVE) { + RECOVERY_MRC_CACHE 128K + RW_MRC_CACHE 128K + } + RW_ELOG(PRESERVE) 16K + RW_SHARED 16K { + SHARED_DATA 8K + VBLOCK_DEV 8K + } + RW_VPD(PRESERVE) 8K + RW_NVRAM(PRESERVE) 24K + } + + CONSOLE 128K + SMMSTORE(PRESERVE) 256K + + RW_SECTION_A 5280K { + VBLOCK_A 64K + FW_MAIN_A(CBFS) + RW_FWID_A 0x100 + } + + RW_SECTION_B 5280K { + VBLOCK_B 64K + FW_MAIN_B(CBFS) + RW_FWID_B 0x100 + } + + WP_RO 5M { + RO_VPD(PRESERVE) 16K + RO_SECTION { + FMAP 2K + RO_FRID 0x100 + RO_FRID_PAD 0x700 + GBB 12K + COREBOOT(CBFS) + } + } +} |