mirror of https://gitee.com/openkylin/linux.git
MIPS: Kill RM7K & RM9K IRQ Code
RM7000 IRQ driver never got really used by any of the platform, and rm9k_cpu_irq_init only exist in a header. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
c2b49a3237
commit
0ea33321ff
|
@ -1256,9 +1256,6 @@ config SYS_SUPPORTS_HUGETLBFS
|
|||
config MIPS_HUGE_TLB_SUPPORT
|
||||
def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
|
||||
|
||||
config IRQ_CPU_RM7K
|
||||
bool
|
||||
|
||||
config IRQ_MSP_SLP
|
||||
bool
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#define _ASM_IRQ_CPU_H
|
||||
|
||||
extern void mips_cpu_irq_init(void);
|
||||
extern void rm7k_cpu_irq_init(void);
|
||||
extern void rm9k_cpu_irq_init(void);
|
||||
|
||||
#ifdef CONFIG_IRQ_DOMAIN
|
||||
struct device_node;
|
||||
|
|
|
@ -28,12 +28,6 @@
|
|||
#endif /* CONFIG_I8259 */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IRQ_CPU_RM7K
|
||||
#ifndef RM7K_CPU_IRQ_BASE
|
||||
#define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_IRQ_MIPS_CPU */
|
||||
|
||||
#endif /* __ASM_MACH_GENERIC_IRQ_H */
|
||||
|
|
|
@ -71,7 +71,6 @@ obj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o
|
|||
obj-$(CONFIG_MIPS_VPE_APSP_API_CMP) += rtlx-cmp.o
|
||||
obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
|
||||
|
||||
obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
|
||||
obj-$(CONFIG_MIPS_MSC) += irq-msc01.o
|
||||
obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o
|
||||
obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* Copyright (C) 2003 Ralf Baechle
|
||||
*
|
||||
* Handler for RM7000 extended interrupts. These are a non-standard
|
||||
* feature so we handle them separately from standard interrupts.
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include <asm/irq_cpu.h>
|
||||
#include <asm/mipsregs.h>
|
||||
|
||||
static inline void unmask_rm7k_irq(struct irq_data *d)
|
||||
{
|
||||
set_c0_intcontrol(0x100 << (d->irq - RM7K_CPU_IRQ_BASE));
|
||||
}
|
||||
|
||||
static inline void mask_rm7k_irq(struct irq_data *d)
|
||||
{
|
||||
clear_c0_intcontrol(0x100 << (d->irq - RM7K_CPU_IRQ_BASE));
|
||||
}
|
||||
|
||||
static struct irq_chip rm7k_irq_controller = {
|
||||
.name = "RM7000",
|
||||
.irq_ack = mask_rm7k_irq,
|
||||
.irq_mask = mask_rm7k_irq,
|
||||
.irq_mask_ack = mask_rm7k_irq,
|
||||
.irq_unmask = unmask_rm7k_irq,
|
||||
.irq_eoi = unmask_rm7k_irq
|
||||
};
|
||||
|
||||
void __init rm7k_cpu_irq_init(void)
|
||||
{
|
||||
int base = RM7K_CPU_IRQ_BASE;
|
||||
int i;
|
||||
|
||||
clear_c0_intcontrol(0x00000f00); /* Mask all */
|
||||
|
||||
for (i = base; i < base + 4; i++)
|
||||
irq_set_chip_and_handler(i, &rm7k_irq_controller,
|
||||
handle_percpu_irq);
|
||||
}
|
Loading…
Reference in New Issue