soc/amd/phoenix/fch: only call gpp_clk_setup in FSP case

The configuration of the PCIe clock generators in the FCH was moved from
the FSP to coreboot, since all registers are documented. This
initialization is however tightly integrated in the rest of the PCIe
init code inside the reference code. In the FSP case, this code was
manually removed. openSIL will do that part of the initialization so
that there's no coreboot-specific change needed in openSIL. This will
also avoid the problems caused by mismatching configurations done by the
coreboot code and the PCIe init part of the reference code.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I6d64285a301ade6860c07e62dcb1a718e7a96644
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80295
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
Felix Held 2024-02-01 20:25:02 +01:00
parent cbbb09b685
commit 2911823289
1 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,9 @@ void fch_init(void *chip_info)
acpi_pm_gpe_add_events_print_events();
gpio_add_events();
gpp_clk_setup();
if (CONFIG(PLATFORM_USES_FSP2_0))
gpp_clk_setup();
fch_clk_output_48Mhz();
cgpll_clock_gate_init();
}