cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / skyrim / spi_speeds.c
blob90a6b4767765c3a933eb3c00fc24e32b758d5e1d
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <amdblocks/spi.h>
4 #include <boardid.h>
5 #include <stdint.h>
7 void mainboard_spi_cfg_override(uint8_t *fast_speed, uint8_t *read_mode)
9 uint32_t board_ver = board_id();
11 if (board_ver >= CONFIG_OVERRIDE_EFS_SPI_SPEED_MIN_BOARD)
12 *fast_speed = CONFIG_OVERRIDE_EFS_SPI_SPEED;
15 * Due to a hardware limitation, Dual I/O 1-2-2 Read mode is supported starting
16 * board version 3. This hardware limitation applies only to Skyrim reference
17 * design.
19 if (CONFIG(BOARD_GOOGLE_SKYRIM) && board_ver >= 3)
20 *read_mode = SPI_READ_MODE_DUAL122;