aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc-mbox.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-02-03 20:51:59 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-03 09:40:40 +1100
commita2940770ca6da2c58081f8207aded197e45f6cd6 (patch)
treef51be7c9dbe321fa6a270d88b502bf70269c6f9d /hw/lpc-mbox.c
parent95c59d192376a4360278393da5df53e21ae3fc72 (diff)
downloadskiboot-a2940770ca6da2c58081f8207aded197e45f6cd6.zip
skiboot-a2940770ca6da2c58081f8207aded197e45f6cd6.tar.gz
skiboot-a2940770ca6da2c58081f8207aded197e45f6cd6.tar.bz2
lpc/uart: Support routing of selected LPC interrupts to Linux
Each LPC interrupt can be routed to one of 4 lines to the PSI bridge which represent 4 different system interrupts. This allows LPC clients to request as specific target (Linux or OPAL) and makes the LPC core pick a route and configure it appropriately. The UART is updated to properly forward interrupts to Linux if necessary Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/lpc-mbox.c')
-rw-r--r--hw/lpc-mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lpc-mbox.c b/hw/lpc-mbox.c
index fb8852a..ec101ae 100644
--- a/hw/lpc-mbox.c
+++ b/hw/lpc-mbox.c
@@ -273,7 +273,7 @@ void mbox_init(void)
chip_id = dt_get_chip_id(np);
mbox_lpc_client.interrupts = LPC_IRQ(irq);
- lpc_register_client(chip_id, &mbox_lpc_client);
+ lpc_register_client(chip_id, &mbox_lpc_client, IRQ_ATTR_TARGET_OPAL);
prlog(PR_DEBUG, "Using chipid: %d and IRQ: %d at 0x%08x\n", chip_id, irq, mbox.base);
}