summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/mandolin
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2021-08-09 10:39:27 -0600
committerFelix Held <felix-coreboot@felixheld.de>2021-08-28 17:42:22 +0000
commitdd6c7331ac6692816484438f2f2950060c6e55c9 (patch)
tree58e20ae0ebb11346566d2630c5c6c727340ba66f /src/mainboard/amd/mandolin
parentf032221bd1486c6c04bb19ad202bb5c6b525f8b0 (diff)
mb/(amd,google): Update SPI Kconfig settings based on devicetree
This takes the devicetree SPI settings and moves them into Kconfig. BUG=b:195943311 TEST=boot guybrush & majolica and verify spi settings. Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: Icce1d57761465ae8255e5d9ce8679f3fdcb0ceed Reviewed-on: https://review.coreboot.org/c/coreboot/+/56885 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/amd/mandolin')
-rw-r--r--src/mainboard/amd/mandolin/Kconfig23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/mainboard/amd/mandolin/Kconfig b/src/mainboard/amd/mandolin/Kconfig
index 9d545b8701..50b3e5d5bc 100644
--- a/src/mainboard/amd/mandolin/Kconfig
+++ b/src/mainboard/amd/mandolin/Kconfig
@@ -124,20 +124,25 @@ config VGA_BIOS_DGPU_FILE
default "3rdparty/amd_blobs/picasso/PicassoGenericVbios.bin" if BOARD_AMD_MANDOLIN
default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin" if BOARD_AMD_CEREME
+if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
config EFS_SPI_READ_MODE
- int
- default 0 if EM100
- default 0 if BOARD_AMD_CEREME
- default 3
+ default 3 # Quad IO (1-1-4)
config EFS_SPI_SPEED
- int
- default 3 if EM100
- default 1 if BOARD_AMD_CEREME
- default 0
+ default 0 # 66MHz
config EFS_SPI_MICRON_FLAG
- int
default 0
+config NORMAL_READ_SPI_SPEED
+ default 1 # 33MHz
+
+config ALT_SPI_SPEED
+ default 1 # 33MHz
+
+config TPM_SPI_SPEED
+ default 1 # 33MHz
+
+endif # !EM100
+
endif # BOARD_AMD_MANDOLIN || BOARD_AMD_CEREME