summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorMario Scheithauer <mario.scheithauer@siemens.com>2018-08-23 14:48:06 +0200
committerWerner Zeh <werner.zeh@siemens.com>2018-08-27 06:31:27 +0000
commit56508967d8b433b2821d54207370332e1f319354 (patch)
tree136e5408a17b0d396a659a421f070fa24e5a54b5 /src/mainboard
parentc5cca15cce060699256cb7f81aeefb39065ac3bd (diff)
downloadcoreboot-56508967d8b433b2821d54207370332e1f319354.tar.xz
siemens/mc_apl1: Disable PCI clock outputs on XIO bridge
This patch disables the unused PCI clock outputs on the XIO2001 PCI Express to PCI Bridge. Change-Id: I0b9cf51a713f4ab46e71d250397486d136c26177 Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/28284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/siemens/mc_apl1/variants/mc_apl1/mainboard.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/variants/mc_apl1/mainboard.c
index 540e322b95..da01ce3905 100644
--- a/src/mainboard/siemens/mc_apl1/variants/mc_apl1/mainboard.c
+++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl1/mainboard.c
@@ -15,6 +15,8 @@
#include <bootstate.h>
#include <console/console.h>
+#include <device/pci_ids.h>
+#include <device/pci_ops.h>
#include <gpio.h>
#include <hwilib.h>
#include <intelblocks/lpc_lib.h>
@@ -28,6 +30,7 @@
void variant_mainboard_final(void)
{
int status;
+ struct device *dev = NULL;
/*
* Set up the DP2LVDS converter.
@@ -47,6 +50,11 @@ void variant_mainboard_final(void)
* INTA#->PIRQB#, INTB#->PIRQC#, INTC#->PIRQD#, INTD#-> PIRQA#
*/
pcr_write16(PID_ITSS, 0x314c, 0x0321);
+
+ /* Disable clock outputs 1-5 (CLKOUT) for XIO2001 PCIe to PCI Bridge. */
+ dev = dev_find_device(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_XIO2001, 0);
+ if (dev)
+ pci_write_config8(dev, 0xd8, 0x3e);
}
static void wait_for_legacy_dev(void *unused)