diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-12-11 15:02:55 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 12:15:30 -0500 |
commit | bdf20507da11a9a5b32ef04fa09f352828189aef (patch) | |
tree | 5fe9541a1b0dfe9628cd3fff26d6ac43de1206a9 /arch/mips/kernel | |
parent | fa4dbbc602a1fb020b627ca8d5a265ad7f3d0c48 (diff) |
MIPS: PMC-Sierra Yosemite: Remove support.
Nobody seems to be interested anymore and upstream also never had an
ethernet driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/kernel/irq-rm9000.c | 106 |
2 files changed, 0 insertions, 107 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 540dff8c7217..007c33d73715 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
@@ -58,7 +58,6 @@ obj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o | |||
58 | obj-$(CONFIG_I8259) += i8259.o | 58 | obj-$(CONFIG_I8259) += i8259.o |
59 | obj-$(CONFIG_IRQ_CPU) += irq_cpu.o | 59 | obj-$(CONFIG_IRQ_CPU) += irq_cpu.o |
60 | obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o | 60 | obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o |
61 | obj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o | ||
62 | obj-$(CONFIG_MIPS_MSC) += irq-msc01.o | 61 | obj-$(CONFIG_MIPS_MSC) += irq-msc01.o |
63 | obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o | 62 | obj-$(CONFIG_IRQ_TXX9) += irq_txx9.o |
64 | obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o | 63 | obj-$(CONFIG_IRQ_GT641XX) += irq-gt641xx.o |
diff --git a/arch/mips/kernel/irq-rm9000.c b/arch/mips/kernel/irq-rm9000.c deleted file mode 100644 index 1282b9ae81c4..000000000000 --- a/arch/mips/kernel/irq-rm9000.c +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2003 Ralf Baechle | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License as published by the | ||
6 | * Free Software Foundation; either version 2 of the License, or (at your | ||
7 | * option) any later version. | ||
8 | * | ||
9 | * Handler for RM9000 extended interrupts. These are a non-standard | ||
10 | * feature so we handle them separately from standard interrupts. | ||
11 | */ | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/interrupt.h> | ||
14 | #include <linux/irq.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/module.h> | ||
17 | |||
18 | #include <asm/irq_cpu.h> | ||
19 | #include <asm/mipsregs.h> | ||
20 | |||
21 | static inline void unmask_rm9k_irq(struct irq_data *d) | ||
22 | { | ||
23 | set_c0_intcontrol(0x1000 << (d->irq - RM9K_CPU_IRQ_BASE)); | ||
24 | } | ||
25 | |||
26 | static inline void mask_rm9k_irq(struct irq_data *d) | ||
27 | { | ||
28 | clear_c0_intcontrol(0x1000 << (d->irq - RM9K_CPU_IRQ_BASE)); | ||
29 | } | ||
30 | |||
31 | static inline void rm9k_cpu_irq_enable(struct irq_data *d) | ||
32 | { | ||
33 | unsigned long flags; | ||
34 | |||
35 | local_irq_save(flags); | ||
36 | unmask_rm9k_irq(d); | ||
37 | local_irq_restore(flags); | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * Performance counter interrupts are global on all processors. | ||
42 | */ | ||
43 | static void local_rm9k_perfcounter_irq_startup(void *args) | ||
44 | { | ||
45 | rm9k_cpu_irq_enable(args); | ||
46 | } | ||
47 | |||
48 | static unsigned int rm9k_perfcounter_irq_startup(struct irq_data *d) | ||
49 | { | ||
50 | on_each_cpu(local_rm9k_perfcounter_irq_startup, d, 1); | ||
51 | |||
52 | return 0; | ||
53 | } | ||
54 | |||
55 | static void local_rm9k_perfcounter_irq_shutdown(void *args) | ||
56 | { | ||
57 | unsigned long flags; | ||
58 | |||
59 | local_irq_save(flags); | ||
60 | mask_rm9k_irq(args); | ||
61 | local_irq_restore(flags); | ||
62 | } | ||
63 | |||
64 | static void rm9k_perfcounter_irq_shutdown(struct irq_data *d) | ||
65 | { | ||
66 | on_each_cpu(local_rm9k_perfcounter_irq_shutdown, d, 1); | ||
67 | } | ||
68 | |||
69 | static struct irq_chip rm9k_irq_controller = { | ||
70 | .name = "RM9000", | ||
71 | .irq_ack = mask_rm9k_irq, | ||
72 | .irq_mask = mask_rm9k_irq, | ||
73 | .irq_mask_ack = mask_rm9k_irq, | ||
74 | .irq_unmask = unmask_rm9k_irq, | ||
75 | .irq_eoi = unmask_rm9k_irq | ||
76 | }; | ||
77 | |||
78 | static struct irq_chip rm9k_perfcounter_irq = { | ||
79 | .name = "RM9000", | ||
80 | .irq_startup = rm9k_perfcounter_irq_startup, | ||
81 | .irq_shutdown = rm9k_perfcounter_irq_shutdown, | ||
82 | .irq_ack = mask_rm9k_irq, | ||
83 | .irq_mask = mask_rm9k_irq, | ||
84 | .irq_mask_ack = mask_rm9k_irq, | ||
85 | .irq_unmask = unmask_rm9k_irq, | ||
86 | }; | ||
87 | |||
88 | unsigned int rm9000_perfcount_irq; | ||
89 | |||
90 | EXPORT_SYMBOL(rm9000_perfcount_irq); | ||
91 | |||
92 | void __init rm9k_cpu_irq_init(void) | ||
93 | { | ||
94 | int base = RM9K_CPU_IRQ_BASE; | ||
95 | int i; | ||
96 | |||
97 | clear_c0_intcontrol(0x0000f000); /* Mask all */ | ||
98 | |||
99 | for (i = base; i < base + 4; i++) | ||
100 | irq_set_chip_and_handler(i, &rm9k_irq_controller, | ||
101 | handle_level_irq); | ||
102 | |||
103 | rm9000_perfcount_irq = base + 1; | ||
104 | irq_set_chip_and_handler(rm9000_perfcount_irq, &rm9k_perfcounter_irq, | ||
105 | handle_percpu_irq); | ||
106 | } | ||