Kyösti Mälkki | 3818604 | 2021-11-04 06:36:25 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <amdblocks/spi.h> |
| 4 | #include <boardid.h> |
| 5 | #include <stdint.h> |
| 6 | |
Karthikeyan Ramasubramanian | 5717ce6 | 2022-10-28 10:23:39 -0600 | [diff] [blame] | 7 | void mainboard_spi_cfg_override(uint8_t *fast_speed, uint8_t *read_mode) |
Kyösti Mälkki | 3818604 | 2021-11-04 06:36:25 +0200 | [diff] [blame] | 8 | { |
| 9 | uint32_t board_ver = board_id(); |
| 10 | |
| 11 | if (board_ver >= CONFIG_OVERRIDE_EFS_SPI_SPEED_MIN_BOARD) |
| 12 | *fast_speed = CONFIG_OVERRIDE_EFS_SPI_SPEED; |
| 13 | } |