From 43e269239e43ad15b7324950e4b986a58abe766b Mon Sep 17 00:00:00 2001 From: Wonkyu Kim Date: Mon, 1 Nov 2021 20:55:25 -0700 Subject: src/lib: Add FW_CONFIG_SOURCE_VPD Read fw_config value from VPD. This new option can be used where chrome EC is not supported like pre-silicon platform and fw_config can be updated by VPD tool in OS. TEST= boot to OS and read fw_config from vpd 1. Boot to OS 2. Write "fw_config" in VPD ex) vpd -i "RW_VPD" -s "fw_config"="1" 3. reboot and check fw_config value from coreboot log Signed-off-by: Wonkyu Kim Change-Id: I4df7d5612e18957416a40ab854fa63c8b11b4216 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58839 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index e30152d2e5..e1d0c00c45 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -416,6 +416,16 @@ config FW_CONFIG_SOURCE_CBFS local image to preempt the mainboard selected source and can be used as FW_CONFIG_SOURCE_CHROMEEC_CBI fallback option. +config FW_CONFIG_SOURCE_VPD + bool "Obtain Firmware Configuration value from VPD" + depends on FW_CONFIG && VPD + default n + help + With this option enabled coreboot will look for the 32bit firmware + configuration value in VPD key name "fw_config". This option will + override other sources and allow the local image to preempt the mainboard + selected source and can be used for other FW_CONFIG_SOURCEs fallback option. + config HAVE_RAMPAYLOAD bool -- cgit v1.2.3