[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] pseries: Add a phandle to the xicp interrupt co
From: |
David Gibson |
Subject: |
[Qemu-devel] [PATCH 4/6] pseries: Add a phandle to the xicp interrupt controller device tree node |
Date: |
Thu, 4 Aug 2011 17:02:17 +1000 |
Future devices we will be adding to the pseries machine (e.g. PCI) will
need nodes in the device tree which explicitly reference the top-level
interrupt controller via interrupt-parent or interrupt-map properties.
In order to do this, the interrupt controller node needs an assigned
phandle. This patch adds the appropriate property, in preparation.
Signed-off-by: David Gibson <address@hidden>
---
hw/spapr.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/spapr.c b/hw/spapr.c
index 109b774..bc15b5c 100644
--- a/hw/spapr.c
+++ b/hw/spapr.c
@@ -54,6 +54,8 @@
#define MAX_CPUS 256
#define XICS_IRQS 1024
+#define PHANDLE_XICP 0x00001111
+
sPAPREnvironment *spapr;
static void *spapr_create_fdt_skel(const char *cpu_model,
@@ -199,6 +201,9 @@ static void *spapr_create_fdt_skel(const char *cpu_model,
_FDT((fdt_property(fdt, "ibm,interrupt-server-ranges",
interrupt_server_ranges_prop,
sizeof(interrupt_server_ranges_prop))));
+ _FDT((fdt_property_cell(fdt, "#interrupt-cells", 2)));
+ _FDT((fdt_property_cell(fdt, "linux,phandle", PHANDLE_XICP)));
+ _FDT((fdt_property_cell(fdt, "phandle", PHANDLE_XICP)));
_FDT((fdt_end_node(fdt)));
--
1.7.5.4
- [Qemu-devel] pseries machine updates, David Gibson, 2011/08/04
- [Qemu-devel] [PATCH 4/6] pseries: Add a phandle to the xicp interrupt controller device tree node,
David Gibson <=
- [Qemu-devel] [PATCH 5/6] pseries: interrupt controller should not have a 'reg' property, David Gibson, 2011/08/04
- [Qemu-devel] [PATCH 6/6] pseries: More complete WIMG validation in H_ENTER code, David Gibson, 2011/08/04
- [Qemu-devel] [PATCH 3/6] pseries: Add real mode debugging hcalls, David Gibson, 2011/08/04
- [Qemu-devel] [PATCH 2/6] Implement POWER7's CFAR in TCG, David Gibson, 2011/08/04
- [Qemu-devel] [PATCH 1/6] pseries: Bugfixes for interrupt numbering in XICS code, David Gibson, 2011/08/04
- Re: [Qemu-devel] pseries machine updates, Alexander Graf, 2011/08/10