Add support for dm81xx to omap intc, remove unused legacy support
Subsystems (3)
Tony Lindgren
maintainercover Add support for dm81xx to omap intc, remove unused legacy support
Hi,
Here's a patch to get the ti81xx interrupt support working properly, and to remove some unused legacy code.
Regards,
Tony
clone of "xxx-81xx-mainline"
Tony Lindgren (2):
irqchip: omap-intc: Fix support for dm814 and dm816
irqchip: omap-intc: Remove unused legacy interface for omap2
.../interrupt-controller/ti,omap-intc-irq.txt | 28 ++++++++++++++++++++++ drivers/irqchip/irq-omap-intc.c | 22 ++++------------- include/linux/irqchip/irq-omap-intc.h | 2 -- 3 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txt
Signature · 1 line
2.1.4
Tony Lindgren
maintainerPATCH 1/2 irqchip: omap-intc: Fix support for dm814 and dm816
On dm81xx we have 128 interrupts like am33xx has. Let's add compatible flags for dm814x and dm816x, and document the existing binding.
As the dm81xx are booting in device tree only mode, we can now also remove ti81xx_init_irq() legacy function.
--- .../interrupt-controller/ti,omap-intc-irq.txt | 28 ++++++++++++++++++++++ drivers/irqchip/irq-omap-intc.c | 14 ++++------- include/linux/irqchip/irq-omap-intc.h | 1 - 3 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txt
Documentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txt new file +28 -0
@@ -0,0 +1,28 @@ +Omap2/3 intc controller + +On TI omap2 and 3 the intc interrupt controller can provide +96 or 128 IRQ signals to the ARM host depending on the SoC. + +Required Properties: +- compatible: should be one of + "ti,omap2-intc" + "ti,omap3-intc" + "ti,dm814-intc" + "ti,dm816-intc" + "ti,am33xx-intc" + +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode interrupt + source, should be 1 for intc +- interrupts: interrupt reference to primary interrupt controller + +Please refer to interrupts.txt in this directory for details of the common +Interrupt Controllers bindings used by client devices. + +Example: + intc: interrupt-controller@48200000 { + compatible = "ti,omap3-intc"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0x48200000 0x1000>; + };
drivers/irqchip/irq-omap-intc.c +5 -9
@@ -364,14 +364,6 @@ void __init omap3_init_irq(void)set_handle_irq (omap_intc_handle_irq); } -void __init ti81xx_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =4 ; -omap_init_irq (OMAP34XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -static int __init intc_of_init (struct device_node *node,struct device_node *parent) {
@@ -383,7 +375,9 @@ static int __init intc_of_init(struct device_node *node,if (WARN_ON (!node))return -ENODEV ; -if (of_device_is_compatible (node,"ti,am33xx-intc" )) { +if (of_device_is_compatible (node,"ti,dm814-intc" ) || +of_device_is_compatible (node,"ti,dm816-intc" ) || +of_device_is_compatible (node,"ti,am33xx-intc" )) { omap_nr_irqs =128 ; omap_nr_pending =4 ; }
@@ -399,4 +393,6 @@ static int __init intc_of_init(struct device_node *node,IRQCHIP_DECLARE (omap2_intc,"ti,omap2-intc" , intc_of_init);IRQCHIP_DECLARE (omap3_intc,"ti,omap3-intc" , intc_of_init); +IRQCHIP_DECLARE (dm814x_intc,"ti,dm814-intc" , intc_of_init); +IRQCHIP_DECLARE (dm816x_intc,"ti,dm816-intc" , intc_of_init);IRQCHIP_DECLARE (am33xx_intc,"ti,am33xx-intc" , intc_of_init);
include/linux/irqchip/irq-omap-intc.h +0 -1
@@ -20,7 +20,6 @@void omap2_init_irq (void );void omap3_init_irq (void ); -void ti81xx_init_irq (void );int omap_irq_pending (void );void omap_intc_save_context (void );
Signature · 1 line
2.1.4
Re: [PATCH 1/2] irqchip: omap-intc: Fix support for dm814 and dm816
Quoted 10 lines · Tony Lindgren
On dm81xx we have 128 interrupts like am33xx has. Let's add compatible flags for dm814x and dm816x, and document the existing binding.
As the dm81xx are booting in device tree only mode, we can now also remove
ti81xx_init_irq()legacy function.Cc Brian Hutchinson <[email protected]>Cc Felipe Balbi <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
Thanks for documenting the binding :-s
Quoted 93 lines
--- .../interrupt-controller/ti,omap-intc-irq.txt | 28 ++++++++++++++++++++++ drivers/irqchip/irq-omap-intc.c | 14 ++++------- include/linux/irqchip/irq-omap-intc.h | 1 - 3 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txtDocumentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txt new file +28
-0@@ -0,0 +1,28 @@ +Omap2/3 intc controller + +On TI omap2 and 3 the intc interrupt controller can provide +96 or 128 IRQ signals to the ARM host depending on the SoC. + +Required Properties: +- compatible: should be one of + "ti,omap2-intc" + "ti,omap3-intc" + "ti,dm814-intc" + "ti,dm816-intc" + "ti,am33xx-intc" + +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode interrupt + source, should be 1 for intc +- interrupts: interrupt reference to primary interrupt controller + +Please refer to interrupts.txt in this directory for details of the common +Interrupt Controllers bindings used by client devices. + +Example: + intc: interrupt-controller@48200000 { + compatible = "ti,omap3-intc"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0x48200000 0x1000>; + };drivers/irqchip/irq-omap-intc.c +5
-9@@ -364,14 +364,6 @@ void __init omap3_init_irq(void)set_handle_irq (omap_intc_handle_irq); } -void __init ti81xx_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =4 ; -omap_init_irq (OMAP34XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -static int __init intc_of_init (struct device_node *node,struct device_node *parent) {@@ -383,7 +375,9 @@ static int __init intc_of_init(struct device_node *node,if (WARN_ON (!node))return -ENODEV ; -if (of_device_is_compatible (node,"ti,am33xx-intc" )) { +if (of_device_is_compatible (node,"ti,dm814-intc" ) || +of_device_is_compatible (node,"ti,dm816-intc" ) || +of_device_is_compatible (node,"ti,am33xx-intc" )) { omap_nr_irqs =128 ; omap_nr_pending =4 ; }@@ -399,4 +393,6 @@ static int __init intc_of_init(struct device_node *node,IRQCHIP_DECLARE (omap2_intc,"ti,omap2-intc" , intc_of_init);IRQCHIP_DECLARE (omap3_intc,"ti,omap3-intc" , intc_of_init); +IRQCHIP_DECLARE (dm814x_intc,"ti,dm814-intc" , intc_of_init); +IRQCHIP_DECLARE (dm816x_intc,"ti,dm816-intc" , intc_of_init);IRQCHIP_DECLARE (am33xx_intc,"ti,am33xx-intc" , intc_of_init);include/linux/irqchip/irq-omap-intc.h +0
-1@@ -20,7 +20,6 @@void omap2_init_irq (void );void omap3_init_irq (void ); -void ti81xx_init_irq (void );int omap_irq_pending (void );void omap_intc_save_context (void );Signature · 1 line
2.1.4
Signature · 1 line
balbi
tip-bot for Tony Lindgren
merge bot[tip:irq/core] irqchip: omap-intc: Fix support for dm814 and dm816
In reply to Tony Lindgrenirqchip: omap-intc: Fix support for dm814 and dm816
Commit-ID: 19f92b237b1700d30b788f00b16a627ffbfdf0e5 Gitweb: http://git.kernel.org/tip/19f92b237b1700d30b788f00b16a627ffbfdf0e5 Author: Tony Lindgren <[email protected]> AuthorDate: Tue, 13 Jan 2015 14:23:25 -0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 26 Jan 2015 11:38:23 +0100
irqchip: omap-intc: Fix support for dm814 and dm816
On dm81xx we have 128 interrupts like am33xx has. Let's add compatible flags for dm814x and dm816x, and document the existing binding.
As the dm81xx are booting in device tree only mode, we can now also remove ti81xx_init_irq() legacy function.
--- .../interrupt-controller/ti,omap-intc-irq.txt | 28 ++++++++++++++++++++++ drivers/irqchip/irq-omap-intc.c | 14 ++++------- include/linux/irqchip/irq-omap-intc.h | 1 - 3 files changed, 33 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/interrupt-controller/ti,omap-intc-irq.txt new file +28 -0
@@ -0,0 +1,28 @@ +Omap2/3 intc controller + +On TI omap2 and 3 the intc interrupt controller can provide +96 or 128 IRQ signals to the ARM host depending on the SoC. + +Required Properties: +- compatible: should be one of + "ti,omap2-intc" + "ti,omap3-intc" + "ti,dm814-intc" + "ti,dm816-intc" + "ti,am33xx-intc" + +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode interrupt + source, should be 1 for intc +- interrupts: interrupt reference to primary interrupt controller + +Please refer to interrupts.txt in this directory for details of the common +Interrupt Controllers bindings used by client devices. + +Example: + intc: interrupt-controller@48200000 { + compatible = "ti,omap3-intc"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0x48200000 0x1000>; + };
drivers/irqchip/irq-omap-intc.c +5 -9
@@ -380,14 +380,6 @@ void __init omap3_init_irq(void)set_handle_irq (omap_intc_handle_irq); } -void __init ti81xx_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =4 ; -omap_init_irq (OMAP34XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -static int __init intc_of_init (struct device_node *node,struct device_node *parent) {
@@ -399,7 +391,9 @@ static int __init intc_of_init(struct device_node *node,if (WARN_ON (!node))return -ENODEV ; -if (of_device_is_compatible (node,"ti,am33xx-intc" )) { +if (of_device_is_compatible (node,"ti,dm814-intc" ) || +of_device_is_compatible (node,"ti,dm816-intc" ) || +of_device_is_compatible (node,"ti,am33xx-intc" )) { omap_nr_irqs =128 ; omap_nr_pending =4 ; }
@@ -415,4 +409,6 @@ static int __init intc_of_init(struct device_node *node,IRQCHIP_DECLARE (omap2_intc,"ti,omap2-intc" , intc_of_init);IRQCHIP_DECLARE (omap3_intc,"ti,omap3-intc" , intc_of_init); +IRQCHIP_DECLARE (dm814x_intc,"ti,dm814-intc" , intc_of_init); +IRQCHIP_DECLARE (dm816x_intc,"ti,dm816-intc" , intc_of_init);IRQCHIP_DECLARE (am33xx_intc,"ti,am33xx-intc" , intc_of_init);
include/linux/irqchip/irq-omap-intc.h +0 -1
@@ -20,7 +20,6 @@void omap2_init_irq (void );void omap3_init_irq (void ); -void ti81xx_init_irq (void );int omap_irq_pending (void );void omap_intc_save_context (void );
Tony Lindgren
maintainerPATCH 2/2 irqchip: omap-intc: Remove unused legacy interface for omap2
In reply to Tony LindgrenNowadays omap2 is booting in device tree only mode so there is no need to keep the legacy interface around for omap2_init_irq().
--- drivers/irqchip/irq-omap-intc.c | 8 -------- include/linux/irqchip/irq-omap-intc.h | 1 - 2 files changed, 9 deletions(-)
drivers/irqchip/irq-omap-intc.c +0 -8
@@ -348,14 +348,6 @@ out:omap_ack_irq (NULL ); } -void __init omap2_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =3 ; -omap_init_irq (OMAP24XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -void __init omap3_init_irq (void ) { omap_nr_irqs =96 ;
include/linux/irqchip/irq-omap-intc.h +0 -1
@@ -18,7 +18,6 @@#ifndef __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H#define __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H -void omap2_init_irq (void );void omap3_init_irq (void );int omap_irq_pending (void );
Signature · 1 line
2.1.4
Re: [PATCH 2/2] irqchip: omap-intc: Remove unused legacy interface for omap2
Quoted 5 lines · Tony Lindgren
Nowadays omap2 is booting in device tree only mode so there is no need to keep the legacy interface around for
omap2_init_irq().Cc Felipe Balbi <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
Awesome, only one to go now.
Quoted 39 lines
--- drivers/irqchip/irq-omap-intc.c | 8 -------- include/linux/irqchip/irq-omap-intc.h | 1 - 2 files changed, 9 deletions(-)drivers/irqchip/irq-omap-intc.c +0
-8@@ -348,14 +348,6 @@ out:omap_ack_irq (NULL ); } -void __init omap2_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =3 ; -omap_init_irq (OMAP24XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -void __init omap3_init_irq (void ) { omap_nr_irqs =96 ;include/linux/irqchip/irq-omap-intc.h +0
-1@@ -18,7 +18,6 @@#ifndef __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H#define __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H -void omap2_init_irq (void );void omap3_init_irq (void );int omap_irq_pending (void );Signature · 1 line
2.1.4
Signature · 1 line
balbi
tip-bot for Tony Lindgren
merge bot[tip:irq/core] irqchip: omap-intc: Remove unused legacy interface for omap2
In reply to Tony Lindgrenirqchip: omap-intc: Remove unused legacy interface for omap2
Commit-ID: c7f2a2ac377626897ad68e63d24d85ee21f47bb1 Gitweb: http://git.kernel.org/tip/c7f2a2ac377626897ad68e63d24d85ee21f47bb1 Author: Tony Lindgren <[email protected]> AuthorDate: Tue, 13 Jan 2015 14:23:26 -0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 26 Jan 2015 11:38:23 +0100
irqchip: omap-intc: Remove unused legacy interface for omap2
Nowadays omap2 is booting in device tree only mode so there is no need to keep the legacy interface around for omap2_init_irq().
--- drivers/irqchip/irq-omap-intc.c | 8 -------- include/linux/irqchip/irq-omap-intc.h | 1 - 2 files changed, 9 deletions(-)
drivers/irqchip/irq-omap-intc.c +0 -8
@@ -364,14 +364,6 @@ out:omap_ack_irq (NULL ); } -void __init omap2_init_irq (void ) -{ - omap_nr_irqs =96 ; - omap_nr_pending =3 ; -omap_init_irq (OMAP24XX_IC_BASE ,NULL ); -set_handle_irq (omap_intc_handle_irq); -} -void __init omap3_init_irq (void ) { omap_nr_irqs =96 ;
include/linux/irqchip/irq-omap-intc.h +0 -1
@@ -18,7 +18,6 @@#ifndef __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H#define __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H -void omap2_init_irq (void );void omap3_init_irq (void );int omap_irq_pending (void );