soc/amd/common/include/espi: rename configure_espi
Rename configure_espi to configure_espi_with_mb_hook to clarify that this function will call into the mb_set_up_early_espi function in the mainboard-specific code if it exists. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I5d0f099288b0100242629c736dd69a8add977b5b Reviewed-on: https://review.coreboot.org/c/coreboot/+/58338 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
@@ -41,7 +41,7 @@ void fch_pre_init(void)
|
|||||||
/* Setup SPI base by calling lpc_early_init before setting up eSPI. */
|
/* Setup SPI base by calling lpc_early_init before setting up eSPI. */
|
||||||
lpc_early_init();
|
lpc_early_init();
|
||||||
/* Setup eSPI to enable port80 routing. */
|
/* Setup eSPI to enable port80 routing. */
|
||||||
configure_espi();
|
configure_espi_with_mb_hook();
|
||||||
fch_spi_early_init();
|
fch_spi_early_init();
|
||||||
fch_smbus_init();
|
fch_smbus_init();
|
||||||
fch_enable_cf9_io();
|
fch_enable_cf9_io();
|
||||||
|
@@ -132,7 +132,7 @@ int espi_setup(void);
|
|||||||
void mb_set_up_early_espi(void);
|
void mb_set_up_early_espi(void);
|
||||||
|
|
||||||
/* Setup eSPI with any mainboard specific initialization. */
|
/* Setup eSPI with any mainboard specific initialization. */
|
||||||
static inline void configure_espi(void)
|
static inline void configure_espi_with_mb_hook(void)
|
||||||
{
|
{
|
||||||
/* If eSPI is setup in PSP Verstage, continue with that. Else setup eSPI to perform
|
/* If eSPI is setup in PSP Verstage, continue with that. Else setup eSPI to perform
|
||||||
port80h routing as early as possible. */
|
port80h routing as early as possible. */
|
||||||
|
@@ -48,7 +48,7 @@ void fch_pre_init(void)
|
|||||||
/* Setup SPI base by calling lpc_early_init before setting up eSPI. */
|
/* Setup SPI base by calling lpc_early_init before setting up eSPI. */
|
||||||
lpc_early_init();
|
lpc_early_init();
|
||||||
/* Setup eSPI to enable port80 routing. */
|
/* Setup eSPI to enable port80 routing. */
|
||||||
configure_espi();
|
configure_espi_with_mb_hook();
|
||||||
|
|
||||||
if (!CONFIG(SOC_AMD_COMMON_BLOCK_USE_ESPI))
|
if (!CONFIG(SOC_AMD_COMMON_BLOCK_USE_ESPI))
|
||||||
lpc_configure_decodes();
|
lpc_configure_decodes();
|
||||||
|
Reference in New Issue
Block a user