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

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

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

Change-Id: I0d9ec1888c82cc6d5ef86d0694269c885ba62c41
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43845
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner
This commit is contained in:
Felix Singer 2020-07-25 08:40:15 +02:00 committed by Michael Niewöhner
parent 57c8143350
commit ffe90c528b
24 changed files with 4 additions and 27 deletions

View File

@ -51,7 +51,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -28,7 +28,6 @@ chip soc/intel/skylake
register "dptf_enable" = "1" register "dptf_enable" = "1"
# FSP Configuration # FSP Configuration
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"
register "ScsSdCardEnabled" = "0" register "ScsSdCardEnabled" = "0"

View File

@ -37,7 +37,6 @@ chip soc/intel/skylake
# FSP Configuration # FSP Configuration
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"
register "ScsEmmcHs400Enabled" = "1" register "ScsEmmcHs400Enabled" = "1"
register "SkipExtGfxScan" = "1" register "SkipExtGfxScan" = "1"

View File

@ -32,7 +32,6 @@ chip soc/intel/tigerlake
register "SataEnable" = "1" register "SataEnable" = "1"
register "SataMode" = "0" register "SataMode" = "0"
register "SataSalpSupport" = "1" register "SataSalpSupport" = "1"
register "SmbusEnable" = "1"
# TODO: the lengths are all MID for right now. # TODO: the lengths are all MID for right now.
register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port 1 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port 1

View File

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

View File

@ -75,7 +75,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -46,7 +46,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"
register "ScsEmmcHs400Enabled" = "1" register "ScsEmmcHs400Enabled" = "1"

View File

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

View File

@ -40,7 +40,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View File

@ -39,7 +39,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "SaImguEnable" = "0" register "SaImguEnable" = "0"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View File

@ -40,7 +40,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View File

@ -45,7 +45,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View File

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

View File

@ -40,7 +40,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "1" register "Cio2Enable" = "1"
register "SaImguEnable" = "1" register "SaImguEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"

View File

@ -23,7 +23,6 @@ chip soc/intel/skylake
register "dptf_enable" = "1" register "dptf_enable" = "1"
# FSP Configuration # FSP Configuration
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"
register "ScsEmmcHs400Enabled" = "1" register "ScsEmmcHs400Enabled" = "1"
register "ScsSdCardEnabled" = "2" register "ScsSdCardEnabled" = "2"

View File

@ -27,7 +27,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "1" register "ScsEmmcEnabled" = "1"
register "ScsEmmcHs400Enabled" = "1" register "ScsEmmcHs400Enabled" = "1"
register "ScsSdCardEnabled" = "2" register "ScsSdCardEnabled" = "2"

View File

@ -21,7 +21,6 @@ chip soc/intel/skylake
register "EnableAzalia" = "1" register "EnableAzalia" = "1"
register "DspEnable" = "1" register "DspEnable" = "1"
register "IoBufferOwnership" = "3" register "IoBufferOwnership" = "3"
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"
register "ScsSdCardEnabled" = "0" register "ScsSdCardEnabled" = "0"

View File

@ -52,7 +52,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -41,7 +41,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -57,7 +57,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -37,7 +37,6 @@ chip soc/intel/skylake
register "IoBufferOwnership" = "0" register "IoBufferOwnership" = "0"
register "EnableTraceHub" = "0" register "EnableTraceHub" = "0"
register "SsicPortEnable" = "0" register "SsicPortEnable" = "0"
register "SmbusEnable" = "1"
register "Cio2Enable" = "0" register "Cio2Enable" = "0"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"

View File

@ -7,7 +7,6 @@ chip soc/intel/skylake
register "speed_shift_enable" = "1" register "speed_shift_enable" = "1"
# FSP Configuration # FSP Configuration
register "SmbusEnable" = "1"
register "ScsEmmcEnabled" = "0" register "ScsEmmcEnabled" = "0"
register "ScsEmmcHs400Enabled" = "0" register "ScsEmmcHs400Enabled" = "0"
register "ScsSdCardEnabled" = "0" register "ScsSdCardEnabled" = "0"

View File

@ -272,9 +272,6 @@ struct soc_intel_skylake_config {
struct usb3_port_config usb3_ports[10]; struct usb3_port_config usb3_ports[10];
u8 SsicPortEnable; u8 SsicPortEnable;
/* SMBus */
u8 SmbusEnable;
/* /*
* SerialIO device mode selection: * SerialIO device mode selection:
* *

View File

@ -272,6 +272,7 @@ static void soc_primary_gfx_config_params(FSP_M_CONFIG *m_cfg,
void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
{ {
const struct soc_intel_skylake_config *config; const struct soc_intel_skylake_config *config;
const struct device *dev;
FSP_M_CONFIG *m_cfg = &mupd->FspmConfig; FSP_M_CONFIG *m_cfg = &mupd->FspmConfig;
FSP_M_TEST_CONFIG *m_t_cfg = &mupd->FspmTestConfig; FSP_M_TEST_CONFIG *m_t_cfg = &mupd->FspmTestConfig;
@ -296,8 +297,9 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
m_cfg->TraceHubMemReg0Size = config->TraceHubMemReg0Size; m_cfg->TraceHubMemReg0Size = config->TraceHubMemReg0Size;
m_cfg->TraceHubMemReg1Size = config->TraceHubMemReg1Size; m_cfg->TraceHubMemReg1Size = config->TraceHubMemReg1Size;
/* Enable SMBus controller based on config */ /* Enable SMBus controller */
m_cfg->SmbusEnable = config->SmbusEnable; dev = pcidev_path_on_root(PCH_DEVFN_SMBUS);
m_cfg->SmbusEnable = dev ? dev->enabled : 0;
/* Set primary graphic device */ /* Set primary graphic device */
soc_primary_gfx_config_params(m_cfg, config); soc_primary_gfx_config_params(m_cfg, config);