.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved. |
---|
3 | 4 | * Copyright (C) 2014 Oleksij Rempel <linux@rempel-privat.de> |
---|
4 | 5 | * Add Alphascale ASM9260 support. |
---|
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 as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License along |
---|
17 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
---|
18 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
71 | 58 | static struct icoll_priv icoll_priv; |
---|
72 | 59 | static struct irq_domain *icoll_domain; |
---|
73 | 60 | |
---|
74 | | -/* calculate bit offset depending on number of intterupt per register */ |
---|
| 61 | +/* calculate bit offset depending on number of interrupt per register */ |
---|
75 | 62 | static u32 icoll_intr_bitshift(struct irq_data *d, u32 bit) |
---|
76 | 63 | { |
---|
77 | 64 | /* |
---|
.. | .. |
---|
81 | 68 | return bit << ((d->hwirq & 3) << 3); |
---|
82 | 69 | } |
---|
83 | 70 | |
---|
84 | | -/* calculate mem offset depending on number of intterupt per register */ |
---|
| 71 | +/* calculate mem offset depending on number of interrupt per register */ |
---|
85 | 72 | static void __iomem *icoll_intr_reg(struct irq_data *d) |
---|
86 | 73 | { |
---|
87 | 74 | /* offset = hwirq / intr_per_reg * 0x10 */ |
---|