From 627f4c5deb712573ab66042a3eb481a62e7fa21f Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 3 Feb 2023 15:21:48 -0700 Subject: [PATCH] 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 Change-Id: If6e402269d1f2cac8256d478eb36743441497bdf Reviewed-on: https://review.coreboot.org/c/coreboot/+/72769 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) Reviewed-by: Tim Van Patten Reviewed-by: Jon Murphy --- src/mainboard/google/skyrim/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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