soc/intel/tigerlake: Enable HDA through dev_enabled
Check for dev enabled status for HDA controller and update the UPD accordingly. BUG=151174264 BRANCH=none TEST=Build and boot tglrvp Signed-off-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com> Change-Id: Id5dfff275ed9906852ef7eb7461fbe89a3a115c5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/39441 Reviewed-by: Caveh Jalali <caveh@chromium.org> Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6f785b0f62
commit
18129f919a
|
@ -28,6 +28,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
|||
{
|
||||
unsigned int i;
|
||||
uint32_t mask = 0;
|
||||
const struct device *dev;
|
||||
|
||||
/* Set IGD stolen size to 60MB. */
|
||||
m_cfg->IgdDvmt50PreAlloc = 0xFE;
|
||||
|
@ -70,7 +71,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
|||
* Skip IGD initialization in FSP if device
|
||||
* is disable in devicetree.cb.
|
||||
*/
|
||||
const struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD);
|
||||
dev = pcidev_path_on_root(SA_DEVFN_IGD);
|
||||
if (!dev || !dev->enabled)
|
||||
m_cfg->InternalGfx = 0;
|
||||
else
|
||||
|
@ -113,6 +114,12 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
|||
m_cfg->PlatformDebugConsent = CONFIG_SOC_INTEL_TIGERLAKE_DEBUG_CONSENT;
|
||||
|
||||
/* Audio: HDAUDIO_LINK_MODE I2S/SNDW */
|
||||
dev = pcidev_path_on_root(PCH_DEVFN_HDA);
|
||||
if (!dev)
|
||||
m_cfg->PchHdaEnable = 0;
|
||||
else
|
||||
m_cfg->PchHdaEnable = dev->enabled;
|
||||
|
||||
m_cfg->PchHdaDspEnable = config->PchHdaDspEnable;
|
||||
m_cfg->PchHdaAudioLinkHdaEnable = config->PchHdaAudioLinkHdaEnable;
|
||||
memcpy(m_cfg->PchHdaAudioLinkDmicEnable, config->PchHdaAudioLinkDmicEnable,
|
||||
|
|
Loading…
Reference in New Issue