[coreboot-gerrit] Change in coreboot[master]: siemens/mc_apl1: Legacy IRQ routing for PCI devices

Mario Scheithauer (Code Review) gerrit at coreboot.org
Mon Oct 23 16:19:39 CEST 2017


Mario Scheithauer has uploaded this change for review. ( https://review.coreboot.org/22139


Change subject: siemens/mc_apl1: Legacy IRQ routing for PCI devices
......................................................................

siemens/mc_apl1: Legacy IRQ routing for PCI devices

On this mainboard there are PCI devices, which are connected to the PCIe
root port via a PCIe-2-PCI bridge. One of the devices only supports the
legacy interrupt routing. For this reason we have to adjust the PIR6
register (0x314c) which is responsible for PCIe device 13h and 14h. This
means that the interrupt routing will also be the same for both PCIe
devices. The bridge is connected to PCIe root port 4 (Device 14.0).

The following routing is required:
INTA#->PIRQB#, INTB#->PIRQC#, INTC#->PIRQD#, INTD#->PIRQA#

Change-Id: I5464c9a2669773bc1e6cd4b4d29d1be838dbfa27
Signed-off-by: Mario Scheithauer <mario.scheithauer at siemens.com>
---
M src/mainboard/siemens/mc_apl1/mainboard.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/22139/1

diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c
index f77ef75..76fad82 100644
--- a/src/mainboard/siemens/mc_apl1/mainboard.c
+++ b/src/mainboard/siemens/mc_apl1/mainboard.c
@@ -21,7 +21,9 @@
 #include <hwilib.h>
 #include <i210.h>
 #include <intelblocks/lpc_lib.h>
+#include <intelblocks/pcr.h>
 #include <soc/pci_devs.h>
+#include <soc/pcr_ids.h>
 #include <string.h>
 #include <bootstate.h>
 #include <timer.h>
@@ -142,6 +144,12 @@
 		cmd |= PCI_COMMAND_MASTER;
 		pci_write_config16(dev, PCI_COMMAND, cmd);
 	}
+
+	/*
+	 * mc_apl1 LM2 - PIR6 register mapping for PCIe root ports
+	 * INTA#->PIRQB#, INTB#->PIRQC#, INTC#->PIRQD#, INTD#-> PIRQA#
+	 */
+	pcr_write16(PID_ITSS, 0x314c, 0x0321);
 }
 
 static void wait_for_legacy_dev(void *unused)

-- 
To view, visit https://review.coreboot.org/22139
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5464c9a2669773bc1e6cd4b4d29d1be838dbfa27
Gerrit-Change-Number: 22139
Gerrit-PatchSet: 1
Gerrit-Owner: Mario Scheithauer <mario.scheithauer at siemens.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171023/8923d60d/attachment.html>


More information about the coreboot-gerrit mailing list