summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/apollolake/chip.c
diff options
context:
space:
mode:
authorFranklin He <franklinh@google.com>2020-03-16 12:31:01 +1100
committerPatrick Georgi <pgeorgi@google.com>2020-03-18 16:46:35 +0000
commit117a66070add9e16b8dbec6425fa34ea25c0fa5a (patch)
tree2a24a16fa8cf05ef909fdedf2030b46424b120a7 /src/soc/intel/apollolake/chip.c
parentb0b32196660c8866a42cff3445ed16a9429c65c1 (diff)
downloadcoreboot-117a66070add9e16b8dbec6425fa34ea25c0fa5a.tar.gz
coreboot-117a66070add9e16b8dbec6425fa34ea25c0fa5a.tar.bz2
coreboot-117a66070add9e16b8dbec6425fa34ea25c0fa5a.zip
soc/intel/apollolake: Allow toggling of GMM in devicetree in Gemini Lake
Enables Gaussian Mixture Model (GMM) if the pci device is enabled in the devicetree for Gemini Lake This ports commit 03ddd190fd6a2e91b16e6fd8a101cf4e11d7cd7b BUG=b:151115705 BRANCH=none TEST=Flashed to Chromebook, PCI device enabled in cbmem, userspace app that uses device still works Change-Id: I72b1dd78705894f0462c7fbe89b76551950c2392 Signed-off-by: Franklin He <franklinh@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39579 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/chip.c')
-rw-r--r--src/soc/intel/apollolake/chip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 178ccac06645..5a652608eb89 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -612,6 +612,7 @@ static void glk_fsp_silicon_init_params_cb(
{
#if CONFIG(SOC_INTEL_GLK)
uint8_t port;
+ struct device *dev;
for (port = 0; port < APOLLOLAKE_USB2_PORT_MAX; port++) {
if (!cfg->usb2eye[port].Usb20OverrideEn)
@@ -627,7 +628,8 @@ static void glk_fsp_silicon_init_params_cb(
cfg->usb2eye[port].Usb20IUsbTxEmphasisEn;
}
- silconfig->Gmm = 0;
+ dev = pcidev_path_on_root(SA_GLK_DEVFN_GMM);
+ silconfig->Gmm = dev ? dev->enabled : 0;
/* On Geminilake, we need to override the default FSP PCIe de-emphasis
* settings using the device tree settings. This is because PCIe