soc/amd/common: move configure_espi_with_mb_hook implementation

Move the actual implementation of configure_espi_with_mb_hook out of the
header file and into the espi_util.c file.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I1106e69a52bf329a41e8e12fd09db846310b102a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58340
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
Felix Held 2021-10-14 21:48:13 +02:00 committed by Felix Held
parent 4e379a2374
commit 1c03da5f5a
2 changed files with 8 additions and 5 deletions

View File

@ -132,10 +132,6 @@ 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_with_mb_hook(void) void configure_espi_with_mb_hook(void);
{
mb_set_up_early_espi();
espi_setup();
}
#endif /* AMD_BLOCK_ESPI_H */ #endif /* AMD_BLOCK_ESPI_H */

View File

@ -1053,3 +1053,10 @@ int espi_setup(void)
return 0; return 0;
} }
/* Setup eSPI with any mainboard specific initialization. */
void configure_espi_with_mb_hook(void)
{
mb_set_up_early_espi();
espi_setup();
}