soc/intel/skylake: Enable TraceHub depending on devicetree configuration

Currently TraceHub gets enabled by the option EnableTraceHub, but this
duplicates the devicetree on/off options. Therefore use the on/off
options for the enablement of the TraceHub controller.

I checked all corresponding mainboards if the devicetree
configuration matches the EnableTraceHub setting.

Change-Id: Idcd1e5035bc66c48620e4033d8b4988428e63db9
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43847
Reviewed-by: Michael Niewöhner
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer 2020-07-25 10:03:37 +02:00 committed by Michael Niewöhner
parent ffe90c528b
commit 87aecf811d
17 changed files with 3 additions and 17 deletions

View file

@ -49,7 +49,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "0" register "DspEnable" = "0"
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -42,7 +42,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View file

@ -73,7 +73,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -44,7 +44,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View file

@ -48,7 +48,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"

View file

@ -38,7 +38,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"

View file

@ -37,7 +37,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "SaImguEnable" = "0" register "SaImguEnable" = "0"

View file

@ -38,7 +38,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"

View file

@ -43,7 +43,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"

View file

@ -48,7 +48,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "SaImguEnable" = "0" register "SaImguEnable" = "0"

View file

@ -38,7 +38,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"

View file

@ -50,7 +50,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -39,7 +39,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "0" register "EnableAzalia" = "0"
register "DspEnable" = "0" register "DspEnable" = "0"
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -55,7 +55,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "0" register "DspEnable" = "0"
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -35,7 +35,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "0" register "DspEnable" = "0"
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"

View file

@ -175,7 +175,6 @@ struct soc_intel_skylake_config {
u8 IoBufferOwnership; u8 IoBufferOwnership;
/* Trace Hub function */ /* Trace Hub function */
u8 EnableTraceHub;
u32 TraceHubMemReg0Size; u32 TraceHubMemReg0Size;
u32 TraceHubMemReg1Size; u32 TraceHubMemReg1Size;

View file

@ -293,7 +293,9 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
/* DCI and TraceHub configs */ /* DCI and TraceHub configs */
m_t_cfg->PchDciEn = config->PchDciEn; m_t_cfg->PchDciEn = config->PchDciEn;
m_cfg->EnableTraceHub = config->EnableTraceHub;
dev = pcidev_path_on_root(PCH_DEVFN_TRACEHUB);
m_cfg->EnableTraceHub = dev ? dev->enabled : 0;
m_cfg->TraceHubMemReg0Size = config->TraceHubMemReg0Size; m_cfg->TraceHubMemReg0Size = config->TraceHubMemReg0Size;
m_cfg->TraceHubMemReg1Size = config->TraceHubMemReg1Size; m_cfg->TraceHubMemReg1Size = config->TraceHubMemReg1Size;