summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-02-03 15:21:48 -0700
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2023-04-26 17:12:40 +0000
commit627f4c5deb712573ab66042a3eb481a62e7fa21f (patch)
tree90e842ab826df7a61c29861e9a47c2d12a8d8dcb /src/mainboard/google
parentb1e1b2ce08e68f71bffdecabfb6e8d1927af7a60 (diff)
mb/google/skyrim: Disable unused SPI ROM types
By default, coreboot includes support for all the different types of SPI ROMs. Excluding the unused ROM types shrinks ramstage by almost 4k. BUG=b:267735039 TEST=Build & Boot ROM BRANCH=Skyrim Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: If6e402269d1f2cac8256d478eb36743441497bdf Reviewed-on: https://review.coreboot.org/c/coreboot/+/72769 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Van Patten <timvp@google.com> Reviewed-by: Jon Murphy <jpmurphy@google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/skyrim/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig
index 1eb6926826..7b8618d7f7 100644
--- a/src/mainboard/google/skyrim/Kconfig
+++ b/src/mainboard/google/skyrim/Kconfig
@@ -199,4 +199,21 @@ config ENABLE_STB_SPILL_TO_DRAM
config CARDBUS_PLUGIN_SUPPORT
default n
+# Exclude support for SPI ROM types that won't be used on Skyrim platforms
+config SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
+ default y
+
+# Gigadevice is used on Whiterun as an alternative to Winbond
+config SPI_FLASH_GIGADEVICE
+ default y
+
+# XMC chips used on Markarth as an alternative to Winbond
+# These chips identify as ST Micro (Manufacturer ID: 0x20)
+config SPI_FLASH_STMICRO
+ default y
+
+# Winbond chips are used by all Skyrim devices as the primary flash chip
+config SPI_FLASH_WINBOND
+ default y
+
endif # BOARD_GOOGLE_BASEBOARD_SKYRIM