From dd6c7331ac6692816484438f2f2950060c6e55c9 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 9 Aug 2021 10:39:27 -0600 Subject: 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 Change-Id: Icce1d57761465ae8255e5d9ce8679f3fdcb0ceed Reviewed-on: https://review.coreboot.org/c/coreboot/+/56885 Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian --- src/mainboard/amd/majolica/Kconfig | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'src/mainboard/amd/majolica') diff --git a/src/mainboard/amd/majolica/Kconfig b/src/mainboard/amd/majolica/Kconfig index 0c3f7df8b2..cba0a0fb7e 100644 --- a/src/mainboard/amd/majolica/Kconfig +++ b/src/mainboard/amd/majolica/Kconfig @@ -53,12 +53,25 @@ config CHROMEOS # Use default libpayload config select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE +if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig config EFS_SPI_READ_MODE - default 0 if EM100 # Normal read mode - default 3 # Quad IO (1-1-4) + default 3 # Quad IO (1-1-4) config EFS_SPI_SPEED - default 3 if EM100 # 16.66 MHz - default 0 # 66.66 MHz + default 0 # 66MHz + +config EFS_SPI_MICRON_FLAG + 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_MAJOLICA -- cgit v1.2.3