irqchip: Broadcom Set Top Box Level-2 interrupt controller
Subsystems (4)
v2 cover irqchip: Broadcom Set Top Box Level-2 interrupt controller
Hi Thomas, Jason,
This patch set adds an irqchip driver for the Broadcom Set Top Box Level-2 interrupt controller hardware, as well as a corresponding Device Tree binding document.
Thanks!
Florian Fainelli (2):
irqchip: add Broadcom Set Top Box Level-2 interrupt controller
Documentation: add Broadcom STB Level-2 interrupt controller binding
.../bindings/interrupt-controller/brcm,l2-intc.txt | 29 +++ drivers/irqchip/Kconfig | 6 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-brcmstb-l2.c | 231 +++++++++++++++++++++ 4 files changed, 267 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt create mode 100644 drivers/irqchip/irq-brcmstb-l2.c
Signature · 1 line
1.9.1
PATCH v2 1/2 irqchip: add Broadcom Set Top Box Level-2 interrupt controller
This patch adds support for the Level-2 interrupt controller hardware found in Broadcom Set Top Box System-on-a-Chip devices. This interrupt controller is implemented using the generic IRQ chip driver with separate enable and disable registers.
---
Changes in v2:
- properly free private data in case we cannot remap the register range
drivers/irqchip/Kconfig | 6 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-brcmstb-l2.c | 202 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 209 insertions(+) create mode 100644 drivers/irqchip/irq-brcmstb-l2.c
drivers/irqchip/Kconfig +6 -0
@@ -30,6 +30,12 @@ config ARM_VIC_NR The maximum number of VICs available in the system, for power management. +config BRCMSTB_L2_IRQ + bool + depends on ARM + select GENERIC_IRQ_CHIP + select IRQ_DOMAIN + config DW_APB_ICTL bool select IRQ_DOMAIN
drivers/irqchip/Makefile +1 -0
@@ -29,3 +29,4 @@ obj-$(CONFIG_TB10X_IRQC) += irq-tb10x.o obj-$(CONFIG_XTENSA) += irq-xtensa-pic.o obj-$(CONFIG_XTENSA_MX) += irq-xtensa-mx.o obj-$(CONFIG_IRQ_CROSSBAR) += irq-crossbar.o +obj-$(CONFIG_BRCMSTB_L2_IRQ) += irq-brcmstb-l2.o
drivers/irqchip/irq-brcmstb-l2.c new file +202 -0
202 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v2 2/2 Documentation: add Broadcom STB Level-2 interrupt controller binding
In reply to Florian FainelliThis patch adds the Device Tree binding document for the Broadcom Set-top-box Level 2 interrupt controller hardware.
---
Changes in v2:
- respin
.../bindings/interrupt-controller/brcm,l2-intc.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt
Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt new file +29 -0
@@ -0,0 +1,29 @@ +Broadcom Generic Level 2 Interrupt Controller + +Required properties: + +- compatible: should be "brcm,l2-intc" +- reg: specifies the base physical address and size of the registers +- interrupt-controller: identifies the node as an interrupt controller +- #interrupt-cells: specifies the number of cells needed to encode an + interrupt source. Should be 1. +- interrupt-parent: specifies the phandle to the parent interrupt controller + this controller is cacaded from +- interrupts: specifies the interrupt line in the interrupt-parent irq space + to be used for cascading + +Optional properties: + +- brcm,irq-can-wake: If present, this means the L2 controller can be used as a + wakeup source for system suspend/resume. + +Example: + +hif_intr2_intc: interrupt-controller at f0441000 { + compatible = "brcm,l2-intc"; + reg = <0xf0441000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&intc>; + interrupts = <0x0 0x20 0x0>; +};
Signature · 1 line
1.9.1
Re: [PATCH v2 1/2] irqchip: add Broadcom Set Top Box Level-2 interrupt controller
In reply to Florian Fainellidrivers/irqchip/irq-brcmstb-l2.c line 57
Quoted 4 lines · Florian Fainelli
drivers/irqchip/irq-brcmstb-l2.c new file +4
-0+static void brcmstb_l2_intc_irq_handle (unsigned int irq,struct irq_desc *desc) +{ +struct brcmstb_l2_intc_data *b =irq_desc_get_handler_data (desc); +struct irq_chip *chip =irq_get_chip (irq);
irq_desc_get_chip() is what you want here. irq_get_chip() is doing a full lookop of desc, which is silly as you have desc already.
Thanks,
tglx
Re: [PATCH v2 1/2] irqchip: add Broadcom Set Top Box Level-2 interrupt controller
2014-05-22 18:51 GMT-07:00 Thomas Gleixner <[email protected]>:
Quoted 8 lines · Florian Fainelli
drivers/irqchip/irq-brcmstb-l2.c line 57
Quoted 4 lines
drivers/irqchip/irq-brcmstb-l2.c new file +4
-0+static void brcmstb_l2_intc_irq_handle (unsigned int irq,struct irq_desc *desc) +{ +struct brcmstb_l2_intc_data *b =irq_desc_get_handler_data (desc); +struct irq_chip *chip =irq_get_chip (irq);
irq_desc_get_chip()is what you want here.irq_get_chip()is doing a full lookop of desc, which is silly as you have desc already.
Thanks, is there anything else that needs fixing before I submit a v3? Thanks!
Signature · 1 line
Florian