summaryrefslogtreecommitdiffstats
path: root/hw/p7ioc.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-07 21:18:47 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-12 20:16:04 +1000
commita5011282403ebbc58779eb032c7588aba2e58805 (patch)
treef20b59fc11efdb296f66d3071d2e8b04f9a3f10b /hw/p7ioc.c
parent052d7b967ed451d232c02e1cabce8d89ae3266fe (diff)
downloadtalos-skiboot-a5011282403ebbc58779eb032c7588aba2e58805.tar.gz
talos-skiboot-a5011282403ebbc58779eb032c7588aba2e58805.zip
interrupts: Use a #interrupt-cells of 2 for XICS interrupts
This is more compliant with PAPR, it will also allow us to use the second cell for other attributes on P9. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/p7ioc.c')
-rw-r--r--hw/p7ioc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/p7ioc.c b/hw/p7ioc.c
index 85a0a512..4480b8ea 100644
--- a/hw/p7ioc.c
+++ b/hw/p7ioc.c
@@ -629,7 +629,8 @@ static void p7ioc_create_hub(struct dt_node *np)
dt_add_property_cells(np, "ibm,opal-hubid", 0, id);
/* XXX Fixme: how many RGC interrupts ? */
- dt_add_property_cells(np, "interrupts", ioc->rgc_buid << 4);
+ dt_add_property_cells(np, "interrupt-parent", get_ics_phandle());
+ dt_add_property_cells(np, "interrupts", ioc->rgc_buid << 4, 1);
dt_add_property_cells(np, "interrupt-base", ioc->rgc_buid << 4);
/* XXX What about ibm,opal-mmio-real ? */
OpenPOWER on IntegriCloud