soc/amd/cezanne: Add call to mb to configure eSPI requirements
When initializing espi early, there may be mainboard requirements to configure the bus properly. This allows the mainboard to do that. BUG=192100564 TEST=Build along with next patch, eSPI works on guybrush Change-Id: Icc02877a09b8f8ed20fd1b04f3cee0509f1a85c5 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55863 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
5a3b07d168
commit
fe58977e6f
|
@ -35,6 +35,7 @@ static void reset_i2c_peripherals(void)
|
|||
/* Initialize port80h routing early if needed */
|
||||
void configure_port80_routing_early(void)
|
||||
{
|
||||
mb_set_up_early_espi();
|
||||
if (CONFIG(SOC_AMD_COMMON_BLOCK_USE_ESPI))
|
||||
espi_setup();
|
||||
}
|
||||
|
|
|
@ -128,4 +128,7 @@ void espi_update_static_bar(uintptr_t bar);
|
|||
*/
|
||||
int espi_setup(void);
|
||||
|
||||
/* Run mainboard configuration needed to set up eSPI */
|
||||
void mb_set_up_early_espi(void);
|
||||
|
||||
#endif /* AMD_BLOCK_ESPI_H */
|
||||
|
|
|
@ -17,6 +17,10 @@ void espi_update_static_bar(uintptr_t bar)
|
|||
espi_bar = bar;
|
||||
}
|
||||
|
||||
__weak void mb_set_up_early_espi(void)
|
||||
{
|
||||
}
|
||||
|
||||
static uintptr_t espi_get_bar(void)
|
||||
{
|
||||
if (ENV_X86 && !espi_bar)
|
||||
|
|
Loading…
Reference in New Issue