Skip to content

Commit 2389d50

Browse files
author
Linus Walleij
committed
ARM: plat-versatile: move FPGA irq driver to drivers/irqchip
This moves the Versatile FPGA interrupt controller driver, used in the Integrator/AP, Integrator/CP and some Versatile boards, out of arch/arm/plat-versatile and down to drivers/irqchip where we have consensus that such drivers belong. The header file is consequently moved to <linux/platform_data/irq-versatile-fpga.h>. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent da72a66 commit 2389d50

10 files changed

Lines changed: 16 additions & 19 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ config ARCH_INTEGRATOR
284284
select MULTI_IRQ_HANDLER
285285
select NEED_MACH_MEMORY_H
286286
select PLAT_VERSATILE
287-
select PLAT_VERSATILE_FPGA_IRQ
288287
select SPARSE_IRQ
288+
select VERSATILE_FPGA_IRQ
289289
help
290290
Support for ARM's Integrator platform.
291291

@@ -318,7 +318,7 @@ config ARCH_VERSATILE
318318
select PLAT_VERSATILE
319319
select PLAT_VERSATILE_CLCD
320320
select PLAT_VERSATILE_CLOCK
321-
select PLAT_VERSATILE_FPGA_IRQ
321+
select VERSATILE_FPGA_IRQ
322322
help
323323
This enables support for ARM Ltd Versatile board.
324324

‎arch/arm/mach-integrator/integrator_ap.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <linux/clockchips.h>
3232
#include <linux/interrupt.h>
3333
#include <linux/io.h>
34+
#include <linux/irqchip/versatile-fpga.h>
3435
#include <linux/mtd/physmap.h>
3536
#include <linux/clk.h>
3637
#include <linux/platform_data/clk-integrator.h>
@@ -56,8 +57,6 @@
5657
#include <asm/mach/pci.h>
5758
#include <asm/mach/time.h>
5859

59-
#include <plat/fpga-irq.h>
60-
6160
#include "common.h"
6261

6362
/*

‎arch/arm/mach-integrator/integrator_cp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/amba/clcd.h>
2121
#include <linux/amba/mmci.h>
2222
#include <linux/io.h>
23+
#include <linux/irqchip/versatile-fpga.h>
2324
#include <linux/gfp.h>
2425
#include <linux/mtd/physmap.h>
2526
#include <linux/platform_data/clk-integrator.h>
@@ -46,7 +47,6 @@
4647
#include <asm/hardware/timer-sp.h>
4748

4849
#include <plat/clcd.h>
49-
#include <plat/fpga-irq.h>
5050
#include <plat/sched_clock.h>
5151

5252
#include "common.h"

‎arch/arm/mach-versatile/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <linux/amba/mmci.h>
3333
#include <linux/amba/pl022.h>
3434
#include <linux/io.h>
35+
#include <linux/irqchip/versatile-fpga.h>
3536
#include <linux/gfp.h>
3637
#include <linux/clkdev.h>
3738
#include <linux/mtd/physmap.h>
@@ -51,7 +52,6 @@
5152
#include <asm/hardware/timer-sp.h>
5253

5354
#include <plat/clcd.h>
54-
#include <plat/fpga-irq.h>
5555
#include <plat/sched_clock.h>
5656

5757
#include "core.h"

‎arch/arm/plat-versatile/Kconfig‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ config PLAT_VERSATILE_CLOCK
66
config PLAT_VERSATILE_CLCD
77
bool
88

9-
config PLAT_VERSATILE_FPGA_IRQ
10-
bool
11-
select IRQ_DOMAIN
12-
13-
config PLAT_VERSATILE_FPGA_IRQ_NR
14-
int
15-
default 4
16-
depends on PLAT_VERSATILE_FPGA_IRQ
17-
189
config PLAT_VERSATILE_LEDS
1910
def_bool y if NEW_LEDS
2011
depends on ARCH_REALVIEW || ARCH_VERSATILE

‎arch/arm/plat-versatile/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
22

33
obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o
44
obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o
5-
obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o
65
obj-$(CONFIG_PLAT_VERSATILE_LEDS) += leds.o
76
obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o
87
obj-$(CONFIG_SMP) += headsmp.o platsmp.o

‎drivers/irqchip/Kconfig‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
# empty
1+
config VERSATILE_FPGA_IRQ
2+
bool
3+
select IRQ_DOMAIN
4+
5+
config VERSATILE_FPGA_IRQ_NR
6+
int
7+
default 4
8+
depends on VERSATILE_FPGA_IRQ

‎drivers/irqchip/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o
2+
obj-$(CONFIG_VERSATILE_FPGA_IRQ) += irq-versatile-fpga.o
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
#include <linux/bitops.h>
55
#include <linux/irq.h>
66
#include <linux/io.h>
7+
#include <linux/irqchip/versatile-fpga.h>
78
#include <linux/irqdomain.h>
89
#include <linux/module.h>
910
#include <linux/of.h>
1011
#include <linux/of_address.h>
1112

1213
#include <asm/exception.h>
1314
#include <asm/mach/irq.h>
14-
#include <plat/fpga-irq.h>
1515

1616
#define IRQ_STATUS 0x00
1717
#define IRQ_RAW_STATUS 0x04
@@ -42,7 +42,7 @@ struct fpga_irq_data {
4242
};
4343

4444
/* we cannot allocate memory when the controllers are initially registered */
45-
static struct fpga_irq_data fpga_irq_devices[CONFIG_PLAT_VERSATILE_FPGA_IRQ_NR];
45+
static struct fpga_irq_data fpga_irq_devices[CONFIG_VERSATILE_FPGA_IRQ_NR];
4646
static int fpga_irq_id;
4747

4848
static void fpga_irq_mask(struct irq_data *d)
File renamed without changes.

0 commit comments

Comments
 (0)