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:
parent
d4863a5ca0
commit
33f3c53504
|
@ -88,14 +88,6 @@ struct spi_config {
|
||||||
*/
|
*/
|
||||||
void fch_spi_early_init(void);
|
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 */
|
/* Set the SPI base address variable */
|
||||||
void spi_set_base(void *base);
|
void spi_set_base(void *base);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
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))
|
if (CONFIG(EM100))
|
||||||
fch_spi_config_em100_modes();
|
fch_spi_config_em100_modes();
|
||||||
|
|
Loading…
Reference in New Issue