From 6db287a5d9cf4124eb3370727f341e69b4bf7197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Mon, 9 May 2022 16:19:35 +0200 Subject: [PATCH] mainboard/msi/ms7d25: Add default vboot configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Żygowski Change-Id: I9590a33e828906de083cb23c8b647ed2da0750ee Reviewed-on: https://review.coreboot.org/c/coreboot/+/64222 Reviewed-by: Krystian Hebel Tested-by: build bot (Jenkins) --- src/mainboard/msi/ms7d25/Kconfig | 22 ++++++++++++ src/mainboard/msi/ms7d25/vboot-rwab.fmd | 48 +++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 src/mainboard/msi/ms7d25/vboot-rwab.fmd 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) + } + } +}