^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * Texas Instruments Keystone IRQ controller IP driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2014 Texas Instruments, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Author: Sajesh Kumar Saran <sajesh@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Grygorii Strashko <grygorii.strashko@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * This program is free software; you can redistribute it and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * modify it under the terms of the GNU General Public License as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * published by the Free Software Foundation version 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * This program is distributed "as is" WITHOUT ANY WARRANTY of any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * kind, whether express or implied; without even the implied warranty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <linux/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <linux/bitops.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #include <linux/moduleparam.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #include <linux/irqdomain.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #include <linux/irqchip.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #include <linux/of_platform.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #include <linux/mfd/syscon.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #include <linux/regmap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* The source ID bits start from 4 to 31 (total 28 bits)*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define BIT_OFS 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define KEYSTONE_N_IRQ (32 - BIT_OFS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) struct keystone_irq_device {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) struct device *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct irq_chip chip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) u32 mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) int irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) struct irq_domain *irqd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) struct regmap *devctrl_regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) u32 devctrl_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) raw_spinlock_t wa_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) static inline u32 keystone_irq_readl(struct keystone_irq_device *kirq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) u32 val = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) ret = regmap_read(kirq->devctrl_regs, kirq->devctrl_offset, &val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) dev_dbg(kirq->dev, "irq read failed ret(%d)\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) return val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) static inline void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) keystone_irq_writel(struct keystone_irq_device *kirq, u32 value)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) ret = regmap_write(kirq->devctrl_regs, kirq->devctrl_offset, value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) dev_dbg(kirq->dev, "irq write failed ret(%d)\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) static void keystone_irq_setmask(struct irq_data *d)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) struct keystone_irq_device *kirq = irq_data_get_irq_chip_data(d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) kirq->mask |= BIT(d->hwirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) dev_dbg(kirq->dev, "mask %lu [%x]\n", d->hwirq, kirq->mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) static void keystone_irq_unmask(struct irq_data *d)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) struct keystone_irq_device *kirq = irq_data_get_irq_chip_data(d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) kirq->mask &= ~BIT(d->hwirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) dev_dbg(kirq->dev, "unmask %lu [%x]\n", d->hwirq, kirq->mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) static void keystone_irq_ack(struct irq_data *d)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /* nothing to do here */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) static irqreturn_t keystone_irq_handler(int irq, void *keystone_irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) struct keystone_irq_device *kirq = keystone_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) unsigned long wa_lock_flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) unsigned long pending;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) int src, virq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) dev_dbg(kirq->dev, "start irq %d\n", irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) pending = keystone_irq_readl(kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) keystone_irq_writel(kirq, pending);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) dev_dbg(kirq->dev, "pending 0x%lx, mask 0x%x\n", pending, kirq->mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) pending = (pending >> BIT_OFS) & ~kirq->mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) dev_dbg(kirq->dev, "pending after mask 0x%lx\n", pending);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) for (src = 0; src < KEYSTONE_N_IRQ; src++) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) if (BIT(src) & pending) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) virq = irq_find_mapping(kirq->irqd, src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) dev_dbg(kirq->dev, "dispatch bit %d, virq %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) src, virq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) if (!virq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) dev_warn(kirq->dev, "spurious irq detected hwirq %d, virq %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) src, virq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) raw_spin_lock_irqsave(&kirq->wa_lock, wa_lock_flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) generic_handle_irq(virq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) raw_spin_unlock_irqrestore(&kirq->wa_lock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) wa_lock_flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) dev_dbg(kirq->dev, "end irq %d\n", irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) return IRQ_HANDLED;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) static int keystone_irq_map(struct irq_domain *h, unsigned int virq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) irq_hw_number_t hw)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) struct keystone_irq_device *kirq = h->host_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) irq_set_chip_data(virq, kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) irq_set_chip_and_handler(virq, &kirq->chip, handle_level_irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) irq_set_probe(virq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) static const struct irq_domain_ops keystone_irq_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) .map = keystone_irq_map,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) .xlate = irq_domain_xlate_onecell,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) static int keystone_irq_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) struct device *dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) struct device_node *np = dev->of_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) struct keystone_irq_device *kirq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) if (np == NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) kirq = devm_kzalloc(dev, sizeof(*kirq), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) if (!kirq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) kirq->devctrl_regs =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) if (IS_ERR(kirq->devctrl_regs))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) return PTR_ERR(kirq->devctrl_regs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) ret = of_property_read_u32_index(np, "ti,syscon-dev", 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) &kirq->devctrl_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) if (ret) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) dev_err(dev, "couldn't read the devctrl_offset offset!\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) kirq->irq = platform_get_irq(pdev, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) if (kirq->irq < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) return kirq->irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) kirq->dev = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) kirq->mask = ~0x0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) kirq->chip.name = "keystone-irq";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) kirq->chip.irq_ack = keystone_irq_ack;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) kirq->chip.irq_mask = keystone_irq_setmask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) kirq->chip.irq_unmask = keystone_irq_unmask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) &keystone_irq_ops, kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) if (!kirq->irqd) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) dev_err(dev, "IRQ domain registration failed\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) raw_spin_lock_init(&kirq->wa_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) platform_set_drvdata(pdev, kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) ret = request_irq(kirq->irq, keystone_irq_handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 0, dev_name(dev), kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) if (ret) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) irq_domain_remove(kirq->irqd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) /* clear all source bits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) keystone_irq_writel(kirq, ~0x0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) dev_info(dev, "irqchip registered, nr_irqs %u\n", KEYSTONE_N_IRQ);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) static int keystone_irq_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) struct keystone_irq_device *kirq = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) int hwirq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) free_irq(kirq->irq, kirq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) for (hwirq = 0; hwirq < KEYSTONE_N_IRQ; hwirq++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) irq_dispose_mapping(irq_find_mapping(kirq->irqd, hwirq));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) irq_domain_remove(kirq->irqd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) static const struct of_device_id keystone_irq_dt_ids[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) { .compatible = "ti,keystone-irq", },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) {},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) MODULE_DEVICE_TABLE(of, keystone_irq_dt_ids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) static struct platform_driver keystone_irq_device_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) .probe = keystone_irq_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) .remove = keystone_irq_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) .driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) .name = "keystone_irq",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) .of_match_table = of_match_ptr(keystone_irq_dt_ids),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) module_platform_driver(keystone_irq_device_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) MODULE_AUTHOR("Texas Instruments");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) MODULE_AUTHOR("Sajesh Kumar Saran");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) MODULE_AUTHOR("Grygorii Strashko");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) MODULE_DESCRIPTION("Keystone IRQ chip");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) MODULE_LICENSE("GPL v2");