summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-02-14 13:26:31 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-09-01 11:47:15 +0000
commit6bc06983ed1d6c545056b584eabc2f7864cb39cd (patch)
tree85e01a12ae0de1e768747bc3760ff9300faf517e /src/mainboard/google
parentd0de6c2183af5f6c435e53632fe92793be4d3783 (diff)
util/amdfwtool: Deal with psp position in flash offset directly
It is based on work by Arthur Heymans, 69852. Get rid of the confusing "position index" and use the relative flash offset as the Kconfig setting instead. TEST=binary identical on amd/birman amd/majolica amd/gardenia amd/mayan amd/bilby amd/mandolin amd/chausie amd/pademelon pcengines/apu2 google/skyrim google/guybrush google/zork google/kahlee google/myst (The test should be done with INCLUDE_CONFIG_FILE=n) Change-Id: I26bde0b7c70efe9f5762109f431329ea7f95b7f2 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72939 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/guybrush/Kconfig7
-rw-r--r--src/mainboard/google/kahlee/Kconfig5
-rw-r--r--src/mainboard/google/skyrim/Kconfig5
-rw-r--r--src/mainboard/google/zork/Kconfig5
4 files changed, 4 insertions, 18 deletions
diff --git a/src/mainboard/google/guybrush/Kconfig b/src/mainboard/google/guybrush/Kconfig
index 8ddd3b1fe9..e66419b627 100644
--- a/src/mainboard/google/guybrush/Kconfig
+++ b/src/mainboard/google/guybrush/Kconfig
@@ -49,6 +49,7 @@ config BOARD_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_PSP_FUSE_SPL
select SYSTEM_TYPE_LAPTOP
select TPM_GOOGLE_CR50
+ select AMD_FWM_POSITION_C20000_DEFAULT
config VBOOT
select EC_GOOGLE_CHROMEEC_SWITCHES
@@ -81,12 +82,6 @@ config MAINBOARD_PART_NUMBER
default "Nipperkin" if BOARD_GOOGLE_NIPPERKIN
default "Dewatt" if BOARD_GOOGLE_DEWATT
-config AMD_FWM_POSITION_INDEX
- int
- default 3
- help
- TODO: might need to be adapted for better placement of files in cbfs
-
config DRIVER_TPM_I2C_BUS
hex
default 0x03
diff --git a/src/mainboard/google/kahlee/Kconfig b/src/mainboard/google/kahlee/Kconfig
index 92896e9d26..a4a7742f76 100644
--- a/src/mainboard/google/kahlee/Kconfig
+++ b/src/mainboard/google/kahlee/Kconfig
@@ -35,6 +35,7 @@ config BOARD_GOOGLE_BASEBOARD_KAHLEE
select HAVE_EM100_SUPPORT
select SYSTEM_TYPE_LAPTOP
select TPM_GOOGLE_CR50
+ select AMD_FWM_POSITION_F20000_DEFAULT
if BOARD_GOOGLE_BASEBOARD_KAHLEE
@@ -104,10 +105,6 @@ config VBOOT_VBNV_OFFSET
config CHROMEOS
select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
-config AMD_FWM_POSITION_INDEX
- int
- default 1
-
config DRIVER_TPM_I2C_BUS
hex
default 0x01
diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig
index dc681e8701..44ecfc4699 100644
--- a/src/mainboard/google/skyrim/Kconfig
+++ b/src/mainboard/google/skyrim/Kconfig
@@ -5,10 +5,6 @@ config BOARD_GOOGLE_BASEBOARD_SKYRIM
if BOARD_GOOGLE_BASEBOARD_SKYRIM
-config AMD_FWM_POSITION_INDEX
- int
- default 3
-
config BOARD_SPECIFIC_OPTIONS
def_bool y
select ACPI_S1_NOT_SUPPORTED
@@ -49,6 +45,7 @@ config BOARD_SPECIFIC_OPTIONS
select PCIEXP_CLK_PM
select PCIEXP_COMMON_CLOCK
select PCIEXP_L1_SUB_STATE
+ select AMD_FWM_POSITION_C20000_DEFAULT
config DEVICETREE
default "variants/baseboard/devicetree.cb"
diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig
index d01b023792..1abefb138c 100644
--- a/src/mainboard/google/zork/Kconfig
+++ b/src/mainboard/google/zork/Kconfig
@@ -51,6 +51,7 @@ config BOARD_SPECIFIC_OPTIONS
select DRIVERS_USB_ACPI
select DRIVERS_UART_ACPI
select DRIVERS_GENERIC_BAYHUB_LV2
+ select AMD_FWM_POSITION_E20000_DEFAULT
config ELOG_BOOT_COUNT_CMOS_OFFSET
int
@@ -126,10 +127,6 @@ config CHROMEOS
# Use default libpayload config
select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
-config AMD_FWM_POSITION_INDEX
- int
- default 2
-
config DRIVER_TPM_I2C_BUS
hex
default 0x03