soc/amd/common: Make fch_spi_config_modes static

It is currently only used in this translation unit.

Signed-off-by: Mathew King <mathewk@chromium.org>
Change-Id: Ib779a38306fb45320f3e4eb71f63630023d59906
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51535
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Mathew King 2021-03-16 11:11:25 -06:00 committed by Felix Held
parent d4863a5ca0
commit 33f3c53504
2 changed files with 1 additions and 9 deletions

View File

@ -88,14 +88,6 @@ struct spi_config {
*/
void fch_spi_early_init(void);
/*
* Configure SPI speed and read mode.
*
* This function expects SoC to include soc_amd_common_config in chip SoC config and uses
* settings from mainboard devicetree to configure speed and read mode.
*/
void fch_spi_config_modes(void);
/* Set the SPI base address variable */
void spi_set_base(void *base);

View File

@ -49,7 +49,7 @@ static void fch_spi_config_em100_modes(void)
fch_spi_set_spi100(SPI_SPEED_16M, SPI_SPEED_16M, SPI_SPEED_16M, SPI_SPEED_16M);
}
void fch_spi_config_modes(void)
static void fch_spi_config_modes(void)
{
if (CONFIG(EM100))
fch_spi_config_em100_modes();