Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Broadcom BCM7120 style Level 2 interrupt controller driver |
| 3 | * |
| 4 | * Copyright (C) 2014 Broadcom Corporation |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 12 | |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/slab.h> |
| 15 | #include <linux/module.h> |
Kevin Cernekee | c17261f | 2014-11-06 22:44:28 -0800 | [diff] [blame] | 16 | #include <linux/kconfig.h> |
Kevin Cernekee | 7b7230e | 2014-12-25 09:49:05 -0800 | [diff] [blame] | 17 | #include <linux/kernel.h> |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 18 | #include <linux/platform_device.h> |
| 19 | #include <linux/of.h> |
| 20 | #include <linux/of_irq.h> |
| 21 | #include <linux/of_address.h> |
| 22 | #include <linux/of_platform.h> |
| 23 | #include <linux/interrupt.h> |
| 24 | #include <linux/irq.h> |
| 25 | #include <linux/io.h> |
| 26 | #include <linux/irqdomain.h> |
| 27 | #include <linux/reboot.h> |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 28 | #include <linux/bitops.h> |
Joel Porquet | 41a83e06 | 2015-07-07 17:11:46 -0400 | [diff] [blame] | 29 | #include <linux/irqchip.h> |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 30 | #include <linux/irqchip/chained_irq.h> |
| 31 | |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 32 | /* Register offset in the L2 interrupt controller */ |
| 33 | #define IRQEN 0x00 |
| 34 | #define IRQSTAT 0x04 |
| 35 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 36 | #define MAX_WORDS 4 |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 37 | #define MAX_MAPPINGS (MAX_WORDS * 2) |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 38 | #define IRQS_PER_WORD 32 |
| 39 | |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 40 | struct bcm7120_l2_intc_data { |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 41 | unsigned int n_words; |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 42 | void __iomem *map_base[MAX_MAPPINGS]; |
| 43 | void __iomem *pair_base[MAX_WORDS]; |
| 44 | int en_offset[MAX_WORDS]; |
| 45 | int stat_offset[MAX_WORDS]; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 46 | struct irq_domain *domain; |
| 47 | bool can_wake; |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 48 | u32 irq_fwd_mask[MAX_WORDS]; |
| 49 | u32 irq_map_mask[MAX_WORDS]; |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 50 | int num_parent_irqs; |
| 51 | const __be32 *map_mask_prop; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | static void bcm7120_l2_intc_irq_handle(unsigned int irq, struct irq_desc *desc) |
| 55 | { |
| 56 | struct bcm7120_l2_intc_data *b = irq_desc_get_handler_data(desc); |
| 57 | struct irq_chip *chip = irq_desc_get_chip(desc); |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 58 | unsigned int idx; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 59 | |
| 60 | chained_irq_enter(chip, desc); |
| 61 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 62 | for (idx = 0; idx < b->n_words; idx++) { |
| 63 | int base = idx * IRQS_PER_WORD; |
| 64 | struct irq_chip_generic *gc = |
| 65 | irq_get_domain_generic_chip(b->domain, base); |
| 66 | unsigned long pending; |
| 67 | int hwirq; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 68 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 69 | irq_gc_lock(gc); |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 70 | pending = irq_reg_readl(gc, b->stat_offset[idx]) & |
| 71 | gc->mask_cache; |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 72 | irq_gc_unlock(gc); |
| 73 | |
| 74 | for_each_set_bit(hwirq, &pending, IRQS_PER_WORD) { |
| 75 | generic_handle_irq(irq_find_mapping(b->domain, |
| 76 | base + hwirq)); |
| 77 | } |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 78 | } |
| 79 | |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 80 | chained_irq_exit(chip, desc); |
| 81 | } |
| 82 | |
Brian Norris | fd53776 | 2015-07-22 16:21:40 -0700 | [diff] [blame^] | 83 | static void bcm7120_l2_intc_suspend(struct irq_chip_generic *gc) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 84 | { |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 85 | struct bcm7120_l2_intc_data *b = gc->private; |
Brian Norris | fd53776 | 2015-07-22 16:21:40 -0700 | [diff] [blame^] | 86 | struct irq_chip_type *ct = gc->chip_types; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 87 | |
| 88 | irq_gc_lock(gc); |
Kevin Cernekee | c17261f | 2014-11-06 22:44:28 -0800 | [diff] [blame] | 89 | if (b->can_wake) |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 90 | irq_reg_writel(gc, gc->mask_cache | gc->wake_active, |
| 91 | ct->regs.mask); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 92 | irq_gc_unlock(gc); |
| 93 | } |
| 94 | |
Brian Norris | fd53776 | 2015-07-22 16:21:40 -0700 | [diff] [blame^] | 95 | static void bcm7120_l2_intc_resume(struct irq_chip_generic *gc) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 96 | { |
Brian Norris | fd53776 | 2015-07-22 16:21:40 -0700 | [diff] [blame^] | 97 | struct irq_chip_type *ct = gc->chip_types; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 98 | |
| 99 | /* Restore the saved mask */ |
| 100 | irq_gc_lock(gc); |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 101 | irq_reg_writel(gc, gc->mask_cache, ct->regs.mask); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 102 | irq_gc_unlock(gc); |
| 103 | } |
| 104 | |
| 105 | static int bcm7120_l2_intc_init_one(struct device_node *dn, |
| 106 | struct bcm7120_l2_intc_data *data, |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 107 | int irq) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 108 | { |
| 109 | int parent_irq; |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 110 | unsigned int idx; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 111 | |
| 112 | parent_irq = irq_of_parse_and_map(dn, irq); |
Dmitry Torokhov | 714710e | 2014-11-14 14:16:14 -0800 | [diff] [blame] | 113 | if (!parent_irq) { |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 114 | pr_err("failed to map interrupt %d\n", irq); |
Dmitry Torokhov | 714710e | 2014-11-14 14:16:14 -0800 | [diff] [blame] | 115 | return -EINVAL; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 118 | /* For multiple parent IRQs with multiple words, this looks like: |
| 119 | * <irq0_w0 irq0_w1 irq1_w0 irq1_w1 ...> |
| 120 | */ |
Kevin Cernekee | 7b7230e | 2014-12-25 09:49:05 -0800 | [diff] [blame] | 121 | for (idx = 0; idx < data->n_words; idx++) { |
| 122 | if (data->map_mask_prop) { |
| 123 | data->irq_map_mask[idx] |= |
| 124 | be32_to_cpup(data->map_mask_prop + |
| 125 | irq * data->n_words + idx); |
| 126 | } else { |
| 127 | data->irq_map_mask[idx] = 0xffffffff; |
| 128 | } |
| 129 | } |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 130 | |
Thomas Gleixner | 99e32ab | 2015-06-21 21:10:51 +0200 | [diff] [blame] | 131 | irq_set_chained_handler_and_data(parent_irq, |
| 132 | bcm7120_l2_intc_irq_handle, data); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 133 | |
| 134 | return 0; |
| 135 | } |
| 136 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 137 | static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, |
| 138 | struct bcm7120_l2_intc_data *data) |
| 139 | { |
| 140 | int ret; |
| 141 | |
| 142 | data->map_base[0] = of_iomap(dn, 0); |
| 143 | if (!data->map_base[0]) { |
| 144 | pr_err("unable to map registers\n"); |
| 145 | return -ENOMEM; |
| 146 | } |
| 147 | |
| 148 | data->pair_base[0] = data->map_base[0]; |
| 149 | data->en_offset[0] = IRQEN; |
| 150 | data->stat_offset[0] = IRQSTAT; |
| 151 | data->n_words = 1; |
| 152 | |
| 153 | ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", |
| 154 | data->irq_fwd_mask, data->n_words); |
| 155 | if (ret != 0 && ret != -EINVAL) { |
| 156 | /* property exists but has the wrong number of words */ |
| 157 | pr_err("invalid brcm,int-fwd-mask property\n"); |
| 158 | return -EINVAL; |
| 159 | } |
| 160 | |
| 161 | data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); |
| 162 | if (!data->map_mask_prop || |
| 163 | (ret != (sizeof(__be32) * data->num_parent_irqs * data->n_words))) { |
| 164 | pr_err("invalid brcm,int-map-mask property\n"); |
| 165 | return -EINVAL; |
| 166 | } |
| 167 | |
| 168 | return 0; |
| 169 | } |
| 170 | |
Kevin Cernekee | 7b7230e | 2014-12-25 09:49:05 -0800 | [diff] [blame] | 171 | static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, |
| 172 | struct bcm7120_l2_intc_data *data) |
| 173 | { |
| 174 | unsigned int gc_idx; |
| 175 | |
| 176 | for (gc_idx = 0; gc_idx < MAX_WORDS; gc_idx++) { |
| 177 | unsigned int map_idx = gc_idx * 2; |
| 178 | void __iomem *en = of_iomap(dn, map_idx + 0); |
| 179 | void __iomem *stat = of_iomap(dn, map_idx + 1); |
| 180 | void __iomem *base = min(en, stat); |
| 181 | |
| 182 | data->map_base[map_idx + 0] = en; |
| 183 | data->map_base[map_idx + 1] = stat; |
| 184 | |
| 185 | if (!base) |
| 186 | break; |
| 187 | |
| 188 | data->pair_base[gc_idx] = base; |
| 189 | data->en_offset[gc_idx] = en - base; |
| 190 | data->stat_offset[gc_idx] = stat - base; |
| 191 | } |
| 192 | |
| 193 | if (!gc_idx) { |
| 194 | pr_err("unable to map registers\n"); |
| 195 | return -EINVAL; |
| 196 | } |
| 197 | |
| 198 | data->n_words = gc_idx; |
| 199 | return 0; |
| 200 | } |
| 201 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 202 | int __init bcm7120_l2_intc_probe(struct device_node *dn, |
| 203 | struct device_node *parent, |
| 204 | int (*iomap_regs_fn)(struct device_node *, |
| 205 | struct bcm7120_l2_intc_data *), |
| 206 | const char *intc_name) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 207 | { |
| 208 | unsigned int clr = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; |
| 209 | struct bcm7120_l2_intc_data *data; |
| 210 | struct irq_chip_generic *gc; |
| 211 | struct irq_chip_type *ct; |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 212 | int ret = 0; |
Kevin Cernekee | c17261f | 2014-11-06 22:44:28 -0800 | [diff] [blame] | 213 | unsigned int idx, irq, flags; |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 214 | |
| 215 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
| 216 | if (!data) |
| 217 | return -ENOMEM; |
| 218 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 219 | data->num_parent_irqs = of_irq_count(dn); |
| 220 | if (data->num_parent_irqs <= 0) { |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 221 | pr_err("invalid number of parent interrupts\n"); |
| 222 | ret = -ENOMEM; |
| 223 | goto out_unmap; |
| 224 | } |
| 225 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 226 | ret = iomap_regs_fn(dn, data); |
| 227 | if (ret < 0) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 228 | goto out_unmap; |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 229 | |
| 230 | for (idx = 0; idx < data->n_words; idx++) { |
| 231 | __raw_writel(data->irq_fwd_mask[idx], |
| 232 | data->pair_base[idx] + |
| 233 | data->en_offset[idx]); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 234 | } |
| 235 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 236 | for (irq = 0; irq < data->num_parent_irqs; irq++) { |
| 237 | ret = bcm7120_l2_intc_init_one(dn, data, irq); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 238 | if (ret) |
| 239 | goto out_unmap; |
| 240 | } |
| 241 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 242 | data->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * data->n_words, |
| 243 | &irq_generic_chip_ops, NULL); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 244 | if (!data->domain) { |
| 245 | ret = -ENOMEM; |
| 246 | goto out_unmap; |
| 247 | } |
| 248 | |
Kevin Cernekee | c17261f | 2014-11-06 22:44:28 -0800 | [diff] [blame] | 249 | /* MIPS chips strapped for BE will automagically configure the |
| 250 | * peripheral registers for CPU-native byte order. |
| 251 | */ |
| 252 | flags = IRQ_GC_INIT_MASK_CACHE; |
| 253 | if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) |
| 254 | flags |= IRQ_GC_BE_IO; |
| 255 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 256 | ret = irq_alloc_domain_generic_chips(data->domain, IRQS_PER_WORD, 1, |
Kevin Cernekee | c17261f | 2014-11-06 22:44:28 -0800 | [diff] [blame] | 257 | dn->full_name, handle_level_irq, clr, 0, flags); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 258 | if (ret) { |
| 259 | pr_err("failed to allocate generic irq chip\n"); |
| 260 | goto out_free_domain; |
| 261 | } |
| 262 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 263 | if (of_property_read_bool(dn, "brcm,irq-can-wake")) |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 264 | data->can_wake = true; |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 265 | |
| 266 | for (idx = 0; idx < data->n_words; idx++) { |
| 267 | irq = idx * IRQS_PER_WORD; |
| 268 | gc = irq_get_domain_generic_chip(data->domain, irq); |
| 269 | |
| 270 | gc->unused = 0xffffffff & ~data->irq_map_mask[idx]; |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 271 | gc->private = data; |
| 272 | ct = gc->chip_types; |
| 273 | |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 274 | gc->reg_base = data->pair_base[idx]; |
| 275 | ct->regs.mask = data->en_offset[idx]; |
| 276 | |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 277 | ct->chip.irq_mask = irq_gc_mask_clr_bit; |
| 278 | ct->chip.irq_unmask = irq_gc_mask_set_bit; |
| 279 | ct->chip.irq_ack = irq_gc_noop; |
Brian Norris | fd53776 | 2015-07-22 16:21:40 -0700 | [diff] [blame^] | 280 | gc->suspend = bcm7120_l2_intc_suspend; |
| 281 | gc->resume = bcm7120_l2_intc_resume; |
| 282 | |
| 283 | /* |
| 284 | * Initialize mask-cache, in case we need it for |
| 285 | * saving/restoring fwd mask even w/o any child interrupts |
| 286 | * installed |
| 287 | */ |
| 288 | gc->mask_cache = irq_reg_readl(gc, ct->regs.mask); |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 289 | |
| 290 | if (data->can_wake) { |
| 291 | /* This IRQ chip can wake the system, set all |
| 292 | * relevant child interupts in wake_enabled mask |
| 293 | */ |
| 294 | gc->wake_enabled = 0xffffffff; |
| 295 | gc->wake_enabled &= ~gc->unused; |
| 296 | ct->chip.irq_set_wake = irq_gc_set_wake; |
| 297 | } |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 298 | } |
| 299 | |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 300 | pr_info("registered %s intc (mem: 0x%p, parent IRQ(s): %d)\n", |
| 301 | intc_name, data->map_base[0], data->num_parent_irqs); |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 302 | |
| 303 | return 0; |
| 304 | |
| 305 | out_free_domain: |
| 306 | irq_domain_remove(data->domain); |
| 307 | out_unmap: |
Kevin Cernekee | 5b5468c | 2014-12-25 09:49:03 -0800 | [diff] [blame] | 308 | for (idx = 0; idx < MAX_MAPPINGS; idx++) { |
| 309 | if (data->map_base[idx]) |
| 310 | iounmap(data->map_base[idx]); |
Kevin Cernekee | c76acf4 | 2014-11-06 22:44:26 -0800 | [diff] [blame] | 311 | } |
Florian Fainelli | a5042de2 | 2014-09-09 17:44:21 -0700 | [diff] [blame] | 312 | kfree(data); |
| 313 | return ret; |
| 314 | } |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 315 | |
| 316 | int __init bcm7120_l2_intc_probe_7120(struct device_node *dn, |
| 317 | struct device_node *parent) |
| 318 | { |
| 319 | return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_7120, |
| 320 | "BCM7120 L2"); |
| 321 | } |
| 322 | |
Kevin Cernekee | 7b7230e | 2014-12-25 09:49:05 -0800 | [diff] [blame] | 323 | int __init bcm7120_l2_intc_probe_3380(struct device_node *dn, |
| 324 | struct device_node *parent) |
| 325 | { |
| 326 | return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_3380, |
| 327 | "BCM3380 L2"); |
| 328 | } |
| 329 | |
Kevin Cernekee | a4fcbb8 | 2014-11-06 22:44:27 -0800 | [diff] [blame] | 330 | IRQCHIP_DECLARE(bcm7120_l2_intc, "brcm,bcm7120-l2-intc", |
Kevin Cernekee | ca40f1b | 2014-12-25 09:49:04 -0800 | [diff] [blame] | 331 | bcm7120_l2_intc_probe_7120); |
Kevin Cernekee | 7b7230e | 2014-12-25 09:49:05 -0800 | [diff] [blame] | 332 | |
| 333 | IRQCHIP_DECLARE(bcm3380_l2_intc, "brcm,bcm3380-l2-intc", |
| 334 | bcm7120_l2_intc_probe_3380); |