Skip to contentSkip to conversation

irqchip: Add support for TI-NSPIRE irqchip

PATCH New [email protected] 2 participants 2 messages Dec 5, 2013 – Jan 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 irqchip: Add support for TI-NSPIRE irqchip

From: Daniel Tang <[email protected]>

This patch adds support for the interrupt controllers found in some TI-Nspire models.

FIQ support was taken out to simplify the driver
code and may be added in later. Since Linux on this platform doesn't really use FIQs, this wasn't really that important in the first place.

---
Changes from v1 to v2:
* Converted to use generic IRQ chips.
* Removed FIQ for now to simplify driver code.
* Based against tip/irq/core and uses IRQ domain support for generic chips.

Changes from v2 to v3:
* Removed unnessecary locking in interrupt acking function
* Mark zevio_init_irq_base as __init since it's only used at init

 .../interrupt-controller/lsi,zevio-intc.txt        |   18 +++
 drivers/irqchip/Makefile                           |    1 +
 drivers/irqchip/irq-zevio.c                        |  127 ++++++++++++++++++++
 3 files changed, 146 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt
 create mode 100644 drivers/irqchip/irq-zevio.c
Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt new file +18 -0
new file mode 100644
index 0000000..aee38e7
@@ -0,0 +1,18 @@
+TI-NSPIRE interrupt controller
+
+Required properties:
+- compatible: Compatible property value should be "lsi,zevio-intc".
+
+- reg: Physical base address of the controller and length of memory mapped
+	region.
+
+- interrupt-controller : Identifies the node as an interrupt controller
+
+Example:
+
+interrupt-controller {
+	compatible = "lsi,zevio-intc";
+	interrupt-controller;
+	reg = <0xDC000000 0x1000>;
+	#interrupt-cells = <1>;
+};
drivers/irqchip/Makefile +1 -0
index c60b901..292b106 100644
@@ -20,5 +20,6 @@ obj-$(CONFIG_SIRF_IRQ)			+= irq-sirfsoc.o
 obj-$(CONFIG_RENESAS_INTC_IRQPIN)	+= irq-renesas-intc-irqpin.o
 obj-$(CONFIG_RENESAS_IRQC)		+= irq-renesas-irqc.o
 obj-$(CONFIG_VERSATILE_FPGA_IRQ)	+= irq-versatile-fpga.o
+obj-$(CONFIG_ARCH_NSPIRE)		+= irq-zevio.o
 obj-$(CONFIG_ARCH_VT8500)		+= irq-vt8500.o
 obj-$(CONFIG_TB10X_IRQC)		+= irq-tb10x.o
drivers/irqchip/irq-zevio.c new file +127 -0

127 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw
irqchip: Add support for TI-NSPIRE irqchip
Commit-ID:  397e7b515785cad6e10b29f3001fd80c3f519bb8
Gitweb:     http://git.kernel.org/tip/397e7b515785cad6e10b29f3001fd80c3f519bb8
Author:     Daniel Tang <[email protected]>
AuthorDate: Thu, 5 Dec 2013 17:12:17 +1100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Wed, 22 Jan 2014 21:48:55 +0100

irqchip: Add support for TI-NSPIRE irqchip

This patch adds support for the interrupt controllers found in some TI-Nspire models.

FIQ support was taken out to simplify the driver code and may be added in later. Since Linux on this platform doesn't really use FIQs, this wasn't really that important in the first place.

[ tglx: Made zevio_handle_irq static and reordered __init functions ]

---
 .../interrupt-controller/lsi,zevio-intc.txt        |  18 +++
 drivers/irqchip/Makefile                           |   1 +
 drivers/irqchip/irq-zevio.c                        | 127 +++++++++++++++++++++
 3 files changed, 146 insertions(+)
Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt new file +18 -0
new file mode 100644
index 0000000..aee38e7
@@ -0,0 +1,18 @@
+TI-NSPIRE interrupt controller
+
+Required properties:
+- compatible: Compatible property value should be "lsi,zevio-intc".
+
+- reg: Physical base address of the controller and length of memory mapped
+	region.
+
+- interrupt-controller : Identifies the node as an interrupt controller
+
+Example:
+
+interrupt-controller {
+	compatible = "lsi,zevio-intc";
+	interrupt-controller;
+	reg = <0xDC000000 0x1000>;
+	#interrupt-cells = <1>;
+};
drivers/irqchip/Makefile +1 -0
index c60b901..292b106 100644
@@ -20,5 +20,6 @@ obj-$(CONFIG_SIRF_IRQ)			+= irq-sirfsoc.o
 obj-$(CONFIG_RENESAS_INTC_IRQPIN)	+= irq-renesas-intc-irqpin.o
 obj-$(CONFIG_RENESAS_IRQC)		+= irq-renesas-irqc.o
 obj-$(CONFIG_VERSATILE_FPGA_IRQ)	+= irq-versatile-fpga.o
+obj-$(CONFIG_ARCH_NSPIRE)		+= irq-zevio.o
 obj-$(CONFIG_ARCH_VT8500)		+= irq-vt8500.o
 obj-$(CONFIG_TB10X_IRQC)		+= irq-tb10x.o
drivers/irqchip/irq-zevio.c new file +127 -0

127 lines not on this page · raw message