Thomas Gleixner | 1802d0b | 2019-05-27 08:55:21 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Generic Broadcom Set Top Box Level 2 Interrupt controller driver |
| 4 | * |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 5 | * Copyright (C) 2014-2017 Broadcom |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 9 | |
| 10 | #include <linux/init.h> |
| 11 | #include <linux/slab.h> |
| 12 | #include <linux/module.h> |
| 13 | #include <linux/platform_device.h> |
Kevin Cernekee | 05f1275 | 2014-11-06 22:44:20 -0800 | [diff] [blame] | 14 | #include <linux/spinlock.h> |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 15 | #include <linux/of.h> |
| 16 | #include <linux/of_irq.h> |
| 17 | #include <linux/of_address.h> |
| 18 | #include <linux/of_platform.h> |
| 19 | #include <linux/interrupt.h> |
| 20 | #include <linux/irq.h> |
| 21 | #include <linux/io.h> |
| 22 | #include <linux/irqdomain.h> |
| 23 | #include <linux/irqchip.h> |
| 24 | #include <linux/irqchip/chained_irq.h> |
| 25 | |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 26 | struct brcmstb_intc_init_params { |
| 27 | irq_flow_handler_t handler; |
| 28 | int cpu_status; |
| 29 | int cpu_clear; |
| 30 | int cpu_mask_status; |
| 31 | int cpu_mask_set; |
| 32 | int cpu_mask_clear; |
| 33 | }; |
| 34 | |
| 35 | /* Register offsets in the L2 latched interrupt controller */ |
| 36 | static const struct brcmstb_intc_init_params l2_edge_intc_init = { |
| 37 | .handler = handle_edge_irq, |
| 38 | .cpu_status = 0x00, |
| 39 | .cpu_clear = 0x08, |
| 40 | .cpu_mask_status = 0x0c, |
| 41 | .cpu_mask_set = 0x10, |
| 42 | .cpu_mask_clear = 0x14 |
| 43 | }; |
| 44 | |
| 45 | /* Register offsets in the L2 level interrupt controller */ |
| 46 | static const struct brcmstb_intc_init_params l2_lvl_intc_init = { |
| 47 | .handler = handle_level_irq, |
| 48 | .cpu_status = 0x00, |
| 49 | .cpu_clear = -1, /* Register not present */ |
| 50 | .cpu_mask_status = 0x04, |
| 51 | .cpu_mask_set = 0x08, |
| 52 | .cpu_mask_clear = 0x0C |
| 53 | }; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 54 | |
| 55 | /* L2 intc private data structure */ |
| 56 | struct brcmstb_l2_intc_data { |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 57 | struct irq_domain *domain; |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 58 | struct irq_chip_generic *gc; |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 59 | int status_offset; |
| 60 | int mask_offset; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 61 | bool can_wake; |
| 62 | u32 saved_mask; /* for suspend/resume */ |
| 63 | }; |
| 64 | |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 65 | /** |
| 66 | * brcmstb_l2_mask_and_ack - Mask and ack pending interrupt |
| 67 | * @d: irq_data |
| 68 | * |
| 69 | * Chip has separate enable/disable registers instead of a single mask |
| 70 | * register and pending interrupt is acknowledged by setting a bit. |
| 71 | * |
| 72 | * Note: This function is generic and could easily be added to the |
| 73 | * generic irqchip implementation if there ever becomes a will to do so. |
| 74 | * Perhaps with a name like irq_gc_mask_disable_and_ack_set(). |
| 75 | * |
| 76 | * e.g.: https://patchwork.kernel.org/patch/9831047/ |
| 77 | */ |
| 78 | static void brcmstb_l2_mask_and_ack(struct irq_data *d) |
| 79 | { |
| 80 | struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); |
| 81 | struct irq_chip_type *ct = irq_data_get_chip_type(d); |
| 82 | u32 mask = d->mask; |
| 83 | |
| 84 | irq_gc_lock(gc); |
| 85 | irq_reg_writel(gc, mask, ct->regs.disable); |
| 86 | *ct->mask_cache &= ~mask; |
| 87 | irq_reg_writel(gc, mask, ct->regs.ack); |
| 88 | irq_gc_unlock(gc); |
| 89 | } |
| 90 | |
Thomas Gleixner | bd0b9ac | 2015-09-14 10:42:37 +0200 | [diff] [blame] | 91 | static void brcmstb_l2_intc_irq_handle(struct irq_desc *desc) |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 92 | { |
| 93 | struct brcmstb_l2_intc_data *b = irq_desc_get_handler_data(desc); |
| 94 | struct irq_chip *chip = irq_desc_get_chip(desc); |
Thomas Gleixner | bd0b9ac | 2015-09-14 10:42:37 +0200 | [diff] [blame] | 95 | unsigned int irq; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 96 | u32 status; |
| 97 | |
| 98 | chained_irq_enter(chip, desc); |
| 99 | |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 100 | status = irq_reg_readl(b->gc, b->status_offset) & |
| 101 | ~(irq_reg_readl(b->gc, b->mask_offset)); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 102 | |
| 103 | if (status == 0) { |
Kevin Cernekee | 05f1275 | 2014-11-06 22:44:20 -0800 | [diff] [blame] | 104 | raw_spin_lock(&desc->lock); |
Thomas Gleixner | bd0b9ac | 2015-09-14 10:42:37 +0200 | [diff] [blame] | 105 | handle_bad_irq(desc); |
Kevin Cernekee | 05f1275 | 2014-11-06 22:44:20 -0800 | [diff] [blame] | 106 | raw_spin_unlock(&desc->lock); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 107 | goto out; |
| 108 | } |
| 109 | |
| 110 | do { |
| 111 | irq = ffs(status) - 1; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 112 | status &= ~(1 << irq); |
Marc Zyngier | 046a6ee | 2021-05-04 17:42:18 +0100 | [diff] [blame] | 113 | generic_handle_domain_irq(b->domain, irq); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 114 | } while (status); |
| 115 | out: |
| 116 | chained_irq_exit(chip, desc); |
| 117 | } |
| 118 | |
| 119 | static void brcmstb_l2_intc_suspend(struct irq_data *d) |
| 120 | { |
| 121 | struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 122 | struct irq_chip_type *ct = irq_data_get_chip_type(d); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 123 | struct brcmstb_l2_intc_data *b = gc->private; |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 124 | unsigned long flags; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 125 | |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 126 | irq_gc_lock_irqsave(gc, flags); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 127 | /* Save the current mask */ |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 128 | b->saved_mask = irq_reg_readl(gc, ct->regs.mask); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 129 | |
| 130 | if (b->can_wake) { |
| 131 | /* Program the wakeup mask */ |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 132 | irq_reg_writel(gc, ~gc->wake_active, ct->regs.disable); |
| 133 | irq_reg_writel(gc, gc->wake_active, ct->regs.enable); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 134 | } |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 135 | irq_gc_unlock_irqrestore(gc, flags); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | static void brcmstb_l2_intc_resume(struct irq_data *d) |
| 139 | { |
| 140 | struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 141 | struct irq_chip_type *ct = irq_data_get_chip_type(d); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 142 | struct brcmstb_l2_intc_data *b = gc->private; |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 143 | unsigned long flags; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 144 | |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 145 | irq_gc_lock_irqsave(gc, flags); |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 146 | if (ct->chip.irq_ack) { |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 147 | /* Clear unmasked non-wakeup interrupts */ |
| 148 | irq_reg_writel(gc, ~b->saved_mask & ~gc->wake_active, |
| 149 | ct->regs.ack); |
| 150 | } |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 151 | |
| 152 | /* Restore the saved mask */ |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 153 | irq_reg_writel(gc, b->saved_mask, ct->regs.disable); |
| 154 | irq_reg_writel(gc, ~b->saved_mask, ct->regs.enable); |
Doug Berger | 3351788 | 2019-02-20 14:15:28 -0800 | [diff] [blame] | 155 | irq_gc_unlock_irqrestore(gc, flags); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Ben Dooks | 2ae9add | 2016-06-08 19:02:20 +0100 | [diff] [blame] | 158 | static int __init brcmstb_l2_intc_of_init(struct device_node *np, |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 159 | struct device_node *parent, |
| 160 | const struct brcmstb_intc_init_params |
| 161 | *init_params) |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 162 | { |
| 163 | unsigned int clr = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; |
| 164 | struct brcmstb_l2_intc_data *data; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 165 | struct irq_chip_type *ct; |
| 166 | int ret; |
Kevin Cernekee | 1abbdba | 2014-11-06 22:44:29 -0800 | [diff] [blame] | 167 | unsigned int flags; |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 168 | int parent_irq; |
| 169 | void __iomem *base; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 170 | |
| 171 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
| 172 | if (!data) |
| 173 | return -ENOMEM; |
| 174 | |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 175 | base = of_iomap(np, 0); |
| 176 | if (!base) { |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 177 | pr_err("failed to remap intc L2 registers\n"); |
| 178 | ret = -ENOMEM; |
| 179 | goto out_free; |
| 180 | } |
| 181 | |
| 182 | /* Disable all interrupts by default */ |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 183 | writel(0xffffffff, base + init_params->cpu_mask_set); |
Brian Norris | c9ae71e | 2014-12-25 09:49:02 -0800 | [diff] [blame] | 184 | |
| 185 | /* Wakeup interrupts may be retained from S5 (cold boot) */ |
| 186 | data->can_wake = of_property_read_bool(np, "brcm,irq-can-wake"); |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 187 | if (!data->can_wake && (init_params->cpu_clear >= 0)) |
| 188 | writel(0xffffffff, base + init_params->cpu_clear); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 189 | |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 190 | parent_irq = irq_of_parse_and_map(np, 0); |
| 191 | if (!parent_irq) { |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 192 | pr_err("failed to find parent interrupt\n"); |
Dmitry Torokhov | d99ba44 | 2014-11-14 14:16:42 -0800 | [diff] [blame] | 193 | ret = -EINVAL; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 194 | goto out_unmap; |
| 195 | } |
| 196 | |
| 197 | data->domain = irq_domain_add_linear(np, 32, |
| 198 | &irq_generic_chip_ops, NULL); |
| 199 | if (!data->domain) { |
| 200 | ret = -ENOMEM; |
| 201 | goto out_unmap; |
| 202 | } |
| 203 | |
Kevin Cernekee | 1abbdba | 2014-11-06 22:44:29 -0800 | [diff] [blame] | 204 | /* MIPS chips strapped for BE will automagically configure the |
| 205 | * peripheral registers for CPU-native byte order. |
| 206 | */ |
| 207 | flags = 0; |
| 208 | if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) |
| 209 | flags |= IRQ_GC_BE_IO; |
| 210 | |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 211 | /* Allocate a single Generic IRQ chip for this node */ |
| 212 | ret = irq_alloc_domain_generic_chips(data->domain, 32, 1, |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 213 | np->full_name, init_params->handler, clr, 0, flags); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 214 | if (ret) { |
| 215 | pr_err("failed to allocate generic irq chip\n"); |
| 216 | goto out_free_domain; |
| 217 | } |
| 218 | |
| 219 | /* Set the IRQ chaining logic */ |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 220 | irq_set_chained_handler_and_data(parent_irq, |
Thomas Gleixner | f286c17 | 2015-06-21 21:10:52 +0200 | [diff] [blame] | 221 | brcmstb_l2_intc_irq_handle, data); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 222 | |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 223 | data->gc = irq_get_domain_generic_chip(data->domain, 0); |
| 224 | data->gc->reg_base = base; |
| 225 | data->gc->private = data; |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 226 | data->status_offset = init_params->cpu_status; |
| 227 | data->mask_offset = init_params->cpu_mask_status; |
Doug Berger | 8480ca4 | 2017-09-18 17:59:59 -0700 | [diff] [blame] | 228 | |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 229 | ct = data->gc->chip_types; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 230 | |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 231 | if (init_params->cpu_clear >= 0) { |
| 232 | ct->regs.ack = init_params->cpu_clear; |
| 233 | ct->chip.irq_ack = irq_gc_ack_set_bit; |
| 234 | ct->chip.irq_mask_ack = brcmstb_l2_mask_and_ack; |
| 235 | } else { |
| 236 | /* No Ack - but still slightly more efficient to define this */ |
| 237 | ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; |
| 238 | } |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 239 | |
| 240 | ct->chip.irq_mask = irq_gc_mask_disable_reg; |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 241 | ct->regs.disable = init_params->cpu_mask_set; |
| 242 | ct->regs.mask = init_params->cpu_mask_status; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 243 | |
| 244 | ct->chip.irq_unmask = irq_gc_unmask_enable_reg; |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 245 | ct->regs.enable = init_params->cpu_mask_clear; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 246 | |
| 247 | ct->chip.irq_suspend = brcmstb_l2_intc_suspend; |
| 248 | ct->chip.irq_resume = brcmstb_l2_intc_resume; |
Florian Fainelli | c017d21 | 2017-07-27 15:38:17 -0700 | [diff] [blame] | 249 | ct->chip.irq_pm_shutdown = brcmstb_l2_intc_suspend; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 250 | |
Brian Norris | c9ae71e | 2014-12-25 09:49:02 -0800 | [diff] [blame] | 251 | if (data->can_wake) { |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 252 | /* This IRQ chip can wake the system, set all child interrupts |
| 253 | * in wake_enabled mask |
| 254 | */ |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 255 | data->gc->wake_enabled = 0xffffffff; |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 256 | ct->chip.irq_set_wake = irq_gc_set_wake; |
Justin Chen | c8d8d6f | 2020-07-09 15:30:12 -0700 | [diff] [blame] | 257 | enable_irq_wake(parent_irq); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 258 | } |
| 259 | |
Florian Fainelli | 082ce27 | 2019-03-20 12:39:19 -0700 | [diff] [blame] | 260 | pr_info("registered L2 intc (%pOF, parent irq: %d)\n", np, parent_irq); |
| 261 | |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 262 | return 0; |
| 263 | |
| 264 | out_free_domain: |
| 265 | irq_domain_remove(data->domain); |
| 266 | out_unmap: |
Doug Berger | 49aa6ef | 2017-09-18 17:59:58 -0700 | [diff] [blame] | 267 | iounmap(base); |
Florian Fainelli | 7f646e9 | 2014-05-23 17:40:53 -0700 | [diff] [blame] | 268 | out_free: |
| 269 | kfree(data); |
| 270 | return ret; |
| 271 | } |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 272 | |
YueHaibing | dc3173c | 2019-03-20 22:22:20 +0800 | [diff] [blame] | 273 | static int __init brcmstb_l2_edge_intc_of_init(struct device_node *np, |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 274 | struct device_node *parent) |
| 275 | { |
| 276 | return brcmstb_l2_intc_of_init(np, parent, &l2_edge_intc_init); |
| 277 | } |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 278 | |
YueHaibing | dc3173c | 2019-03-20 22:22:20 +0800 | [diff] [blame] | 279 | static int __init brcmstb_l2_lvl_intc_of_init(struct device_node *np, |
Doug Berger | c0ca726 | 2017-09-18 18:00:00 -0700 | [diff] [blame] | 280 | struct device_node *parent) |
| 281 | { |
| 282 | return brcmstb_l2_intc_of_init(np, parent, &l2_lvl_intc_init); |
| 283 | } |
Florian Fainelli | 51d9db5 | 2021-10-20 11:48:54 -0700 | [diff] [blame] | 284 | |
| 285 | IRQCHIP_PLATFORM_DRIVER_BEGIN(brcmstb_l2) |
| 286 | IRQCHIP_MATCH("brcm,l2-intc", brcmstb_l2_edge_intc_of_init) |
| 287 | IRQCHIP_MATCH("brcm,hif-spi-l2-intc", brcmstb_l2_edge_intc_of_init) |
| 288 | IRQCHIP_MATCH("brcm,upg-aux-aon-l2-intc", brcmstb_l2_edge_intc_of_init) |
| 289 | IRQCHIP_MATCH("brcm,bcm7271-l2-intc", brcmstb_l2_lvl_intc_of_init) |
| 290 | IRQCHIP_PLATFORM_DRIVER_END(brcmstb_l2) |
| 291 | MODULE_DESCRIPTION("Broadcom STB generic L2 interrupt controller"); |
| 292 | MODULE_LICENSE("GPL v2"); |