msm: copper: Add msm-gpio as an int-ctrl in Device Tree
All irq chip drivers must register with Device Tree. This allows
for translation of included interrupts, and irq_domain allocation
of the msm-gpio range on the system.
Change-Id: Ic587a810e28eac4b1216e885a22139681fe1c158
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
diff --git a/arch/arm/boot/dts/msmcopper.dts b/arch/arm/boot/dts/msmcopper.dts
index fea1c52..57ad77a 100644
--- a/arch/arm/boot/dts/msmcopper.dts
+++ b/arch/arm/boot/dts/msmcopper.dts
@@ -15,6 +15,13 @@
<0xF9002000 0x1000>;
};
+ msmgpio: gpio@fd400000 {
+ compatible = "qcom,msm-gpio";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ reg = <0xfd400000 0x4000>;
+ };
+
timer {
compatible = "qcom,msm-qtimer";
interrupts = <1 2 0>;
diff --git a/arch/arm/mach-msm/board-copper.c b/arch/arm/mach-msm/board-copper.c
index 5f31f88..c89aee5 100644
--- a/arch/arm/mach-msm/board-copper.c
+++ b/arch/arm/mach-msm/board-copper.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -46,6 +46,7 @@
static struct of_device_id irq_match[] __initdata = {
{ .compatible = "qcom,msm-qgic2", .data = gic_of_init, },
+ { .compatible = "qcom,msm-gpio", .data = msm_gpio_of_init, },
{}
};