From 33f3c53504cd1ad95c85c7f8451159e61ec845a6 Mon Sep 17 00:00:00 2001 From: Mathew King Date: Tue, 16 Mar 2021 11:11:25 -0600 Subject: soc/amd/common: Make fch_spi_config_modes static It is currently only used in this translation unit. Signed-off-by: Mathew King Change-Id: Ib779a38306fb45320f3e4eb71f63630023d59906 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51535 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/spi.h | 8 -------- src/soc/amd/common/block/spi/fch_spi.c | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/soc/amd/common/block/include/amdblocks/spi.h b/src/soc/amd/common/block/include/amdblocks/spi.h index 7da1b24325..a551151d46 100644 --- a/src/soc/amd/common/block/include/amdblocks/spi.h +++ b/src/soc/amd/common/block/include/amdblocks/spi.h @@ -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); diff --git a/src/soc/amd/common/block/spi/fch_spi.c b/src/soc/amd/common/block/spi/fch_spi.c index a644d273a1..0351847756 100644 --- a/src/soc/amd/common/block/spi/fch_spi.c +++ b/src/soc/amd/common/block/spi/fch_spi.c @@ -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(); -- cgit v1.2.3