aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-04-10 17:01:54 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-04-11 17:59:57 -0500
commit9c21cae5aac4246ac4e438cac5a96a24907676c7 (patch)
tree2a68c58cc0adff8abc234105bb2a548885f9a995 /hw/lpc.c
parent379ec78e3da982cd1dff1533d50a9b29b025db5b (diff)
downloadskiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.zip
skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.gz
skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.bz2
interrupts: Create an "interrupts" property in the OPAL node
Deprecate the old "opal-interrupts", it's still there, but the new property follows the standard and allow us to specify whether an interrupt is level or edge sensitive. Similarly create "interrupt-names" whose content is identical to "opal-interrupts-names". Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/lpc.c')
-rw-r--r--hw/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lpc.c b/hw/lpc.c
index dbb2d4b..fbc49c5 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -757,7 +757,7 @@ unsigned int lpc_get_irq_policy(uint32_t chip_id, uint32_t psi_idx)
if (c->lpc->sirq_ralloc[psi_idx] == LPC_ROUTE_LINUX)
return IRQ_ATTR_TARGET_LINUX;
else
- return IRQ_ATTR_TARGET_OPAL;
+ return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TYPE_LSI;
}
static void lpc_create_int_map(struct lpcm *lpc, struct dt_node *psi_node)