soc/amd/common: Move external oscillator config away from common
The usage of external oscillator has got nothing to do with Audio Co-processor (ACP). Hence move it out of common config and put it into the SoC config where it is being used. BUG=None TEST=Build Dalboz and Vilboz mainboards. Change-Id: I8c5d98addfba750f9ddb87a846599541b4a8340a Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52771 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
committed by
Felix Held
parent
2713da3614
commit
39b7afa118
@@ -257,6 +257,8 @@ struct soc_amd_picasso_config {
|
||||
|
||||
/* The array index is the general purpose PCIe clock output number. */
|
||||
enum gpp_clk_req_setting gpp_clk_config[GPP_CLK_OUTPUT_COUNT];
|
||||
/* If using an external 48MHz OSC for codec, will disable internal X48M_OSC */
|
||||
bool acp_i2s_use_external_48mhz_osc;
|
||||
|
||||
/* eDP phy tuning settings */
|
||||
uint16_t edp_phy_override;
|
||||
|
@@ -90,12 +90,12 @@ const struct irq_idx_name *sb_get_apic_reg_association(size_t *size)
|
||||
void sb_clk_output_48Mhz(void)
|
||||
{
|
||||
u32 ctrl;
|
||||
const struct soc_amd_common_config *cfg = soc_get_common_config();
|
||||
const struct soc_amd_picasso_config *cfg = config_of_soc();
|
||||
|
||||
ctrl = misc_read32(MISC_CLK_CNTL1);
|
||||
/* If used external clock source for I2S, disable the internal clock output */
|
||||
if (cfg->acp_config.acp_i2s_use_external_48mhz_osc &&
|
||||
cfg->acp_config.acp_pin_cfg == I2S_PINS_I2S_TDM)
|
||||
if (cfg->acp_i2s_use_external_48mhz_osc &&
|
||||
cfg->common_config.acp_config.acp_pin_cfg == I2S_PINS_I2S_TDM)
|
||||
ctrl &= ~BP_X48M0_OUTPUT_EN;
|
||||
else
|
||||
ctrl |= BP_X48M0_OUTPUT_EN;
|
||||
|
Reference in New Issue
Block a user