<p>Mario Scheithauer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21418">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">siemens/mc_apl1: Move SCI to IRQ 10<br><br>IRQ 9 is used for different purpose on this mainboard so move SCI away<br>to IRQ 10.<br><br>Change-Id: I4b8bfbdd8ab9498197603572b0e533f405a340fe<br>Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com><br>---<br>M src/mainboard/siemens/mc_apl1/mainboard.c<br>1 file changed, 16 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/21418/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/siemens/mc_apl1/mainboard.c b/src/mainboard/siemens/mc_apl1/mainboard.c<br>index 4c90aff..f57047b 100644<br>--- a/src/mainboard/siemens/mc_apl1/mainboard.c<br>+++ b/src/mainboard/siemens/mc_apl1/mainboard.c<br>@@ -20,7 +20,9 @@<br> #include <hwilib.h><br> #include <i210.h><br> #include <intelblocks/lpc_lib.h><br>+#include <intelblocks/pmclib.h><br> #include <soc/pci_devs.h><br>+#include <soc/pm.h><br> #include <string.h><br> #include "brd_gpio.h"<br> #include "ptn3460.h"<br>@@ -112,6 +114,19 @@<br>        gpio_configure_pads(pads, num);<br> }<br> <br>+static void mainboard_enable(device_t dev)<br>+{<br>+      uint32_t irq_sel_2 = 0;<br>+      uintptr_t pmc_bar = 0;<br>+<br>+    /* Route SCI to IRQ 10 to free IRQ 9 slot. */<br>+        pmc_bar = soc_read_pmc_base();<br>+       irq_sel_2 = read32((void *)pmc_bar + IRQ_SEL_2);<br>+     irq_sel_2 &= ~SCI_IRQ_MASK;<br>+      irq_sel_2 |= SCI_IRQ_10;<br>+     write32((void *)(pmc_bar + IRQ_SEL_2), irq_sel_2);<br>+}<br>+<br> static void mainboard_final(void *chip_info)<br> {<br>  int status;<br>@@ -132,5 +147,6 @@<br> <br> struct chip_operations mainboard_ops = {<br>        .init = mainboard_init,<br>+      .enable_dev = mainboard_enable,<br>       .final = mainboard_final,<br> };<br></pre><p>To view, visit <a href="https://review.coreboot.org/21418">change 21418</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21418"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4b8bfbdd8ab9498197603572b0e533f405a340fe </div>
<div style="display:none"> Gerrit-Change-Number: 21418 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mario Scheithauer <mario.scheithauer@siemens.com> </div>