Skip to content

Commit 8a19b8f

Browse files
abresticralfbaechle
authored andcommitted
MIPS: Move GIC to drivers/irqchip/
Move GIC irqchip support to drivers/irqchip/ and rename the Kconfig option from IRQ_GIC to MIPS_GIC to avoid confusion with the ARM GIC. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Acked-by: Jason Cooper <jason@lakedaemon.net> Reviewed-by: Qais Yousef <qais.yousef@imgtec.com> Tested-by: Qais Yousef <qais.yousef@imgtec.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jeffrey Deans <jeffrey.deans@imgtec.com> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: Jonas Gorski <jogo@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: David Daney <ddaney.cavm@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7812/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 8635233 commit 8a19b8f

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ config MIPS_MALTA
320320
select GENERIC_ISA_DMA
321321
select HAVE_PCSPKR_PLATFORM
322322
select IRQ_CPU
323-
select IRQ_GIC
323+
select MIPS_GIC
324324
select HW_HAS_PCI
325325
select I8253
326326
select I8259
@@ -362,7 +362,7 @@ config MIPS_SEAD3
362362
select CPU_MIPSR2_IRQ_EI
363363
select DMA_NONCOHERENT
364364
select IRQ_CPU
365-
select IRQ_GIC
365+
select MIPS_GIC
366366
select LIBFDT
367367
select MIPS_MSC
368368
select SYS_HAS_CPU_MIPS32_R1
@@ -1073,10 +1073,6 @@ config IRQ_TXX9
10731073
config IRQ_GT641XX
10741074
bool
10751075

1076-
config IRQ_GIC
1077-
select MIPS_CM
1078-
bool
1079-
10801076
config PCI_GT64XXX_PCI0
10811077
bool
10821078

@@ -1890,7 +1886,7 @@ config FORCE_MAX_ZONEORDER
18901886

18911887
config CEVT_GIC
18921888
bool "Use GIC global counter for clock events"
1893-
depends on IRQ_GIC && !MIPS_SEAD3
1889+
depends on MIPS_GIC && !MIPS_SEAD3
18941890
help
18951891
Use the GIC global counter for the clock events. The R4K clock
18961892
event driver is always present, so if the platform ends up not

‎arch/mips/kernel/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
6868
obj-$(CONFIG_MIPS_MSC) += irq-msc01.o
6969
obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o
7070
obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o
71-
obj-$(CONFIG_IRQ_GIC) += irq-gic.o
7271

7372
obj-$(CONFIG_KPROBES) += kprobes.o
7473
obj-$(CONFIG_32BIT) += scall32-o32.o

‎arch/mips/kernel/cevt-r4k.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void mips_event_handler(struct clock_event_device *dev)
8585
*/
8686
static int c0_compare_int_pending(void)
8787
{
88-
#ifdef CONFIG_IRQ_GIC
88+
#ifdef CONFIG_MIPS_GIC
8989
if (cpu_has_veic)
9090
return gic_get_timer_pending();
9191
#endif

‎arch/mips/kernel/smp-mt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void vsmp_send_ipi_single(int cpu, unsigned int action)
119119
unsigned long flags;
120120
int vpflags;
121121

122-
#ifdef CONFIG_IRQ_GIC
122+
#ifdef CONFIG_MIPS_GIC
123123
if (gic_present) {
124124
gic_send_ipi_single(cpu, action);
125125
return;
@@ -158,7 +158,7 @@ static void vsmp_send_ipi_mask(const struct cpumask *mask, unsigned int action)
158158

159159
static void vsmp_init_secondary(void)
160160
{
161-
#ifdef CONFIG_IRQ_GIC
161+
#ifdef CONFIG_MIPS_GIC
162162
/* This is Malta specific: IPI,performance and timer interrupts */
163163
if (gic_present)
164164
change_c0_status(ST0_IM, STATUSF_IP3 | STATUSF_IP4 |

‎arch/mips/mti-malta/malta-time.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void __init estimate_frequencies(void)
7070
{
7171
unsigned long flags;
7272
unsigned int count, start;
73-
#ifdef CONFIG_IRQ_GIC
73+
#ifdef CONFIG_MIPS_GIC
7474
unsigned int giccount = 0, gicstart = 0;
7575
#endif
7676

@@ -87,7 +87,7 @@ static void __init estimate_frequencies(void)
8787

8888
/* Initialize counters. */
8989
start = read_c0_count();
90-
#ifdef CONFIG_IRQ_GIC
90+
#ifdef CONFIG_MIPS_GIC
9191
if (gic_present)
9292
GICREAD(GIC_REG(SHARED, GIC_SH_COUNTER_31_00), gicstart);
9393
#endif
@@ -97,7 +97,7 @@ static void __init estimate_frequencies(void)
9797
while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
9898

9999
count = read_c0_count();
100-
#ifdef CONFIG_IRQ_GIC
100+
#ifdef CONFIG_MIPS_GIC
101101
if (gic_present)
102102
GICREAD(GIC_REG(SHARED, GIC_SH_COUNTER_31_00), giccount);
103103
#endif
@@ -107,7 +107,7 @@ static void __init estimate_frequencies(void)
107107
count -= start;
108108
mips_hpt_frequency = count;
109109

110-
#ifdef CONFIG_IRQ_GIC
110+
#ifdef CONFIG_MIPS_GIC
111111
if (gic_present) {
112112
giccount -= gicstart;
113113
gic_frequency = giccount;
@@ -189,7 +189,7 @@ void __init plat_time_init(void)
189189
setup_pit_timer();
190190
#endif
191191

192-
#ifdef CONFIG_IRQ_GIC
192+
#ifdef CONFIG_MIPS_GIC
193193
if (gic_present) {
194194
freq = freqround(gic_frequency, 5000);
195195
printk("GIC frequency %d.%02d MHz\n", freq/1000000,

‎drivers/irqchip/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,7 @@ config KEYSTONE_IRQ
125125
help
126126
Support for Texas Instruments Keystone 2 IRQ controller IP which
127127
is part of the Keystone 2 IPC mechanism
128+
129+
config MIPS_GIC
130+
bool
131+
select MIPS_CM

‎drivers/irqchip/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ obj-$(CONFIG_IRQ_CROSSBAR) += irq-crossbar.o
3838
obj-$(CONFIG_BRCMSTB_L2_IRQ) += irq-brcmstb-l2.o \
3939
irq-bcm7120-l2.o
4040
obj-$(CONFIG_KEYSTONE_IRQ) += irq-keystone.o
41+
obj-$(CONFIG_MIPS_GIC) += irq-mips-gic.o

0 commit comments

Comments
 (0)