coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi_speeds.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <
amdblocks/spi.h
>
4
#include <
boardid.h
>
5
#include <
stdint.h
>
6
7
void
mainboard_spi_fast_speed_override
(
uint8_t
*fast_speed)
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
}
boardid.h
board_id
uint32_t board_id(void)
board_id() - Get the board version
Definition:
ec_boardid.c:6
spi.h
mainboard_spi_fast_speed_override
void mainboard_spi_fast_speed_override(uint8_t *fast_speed)
Definition:
spi_speeds.c:7
stdint.h
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
src
mainboard
google
guybrush
spi_speeds.c
Generated by
1.9.1