Skip to content

Commit 2be6bb0

Browse files
committed
sh: intc: Split up the INTC code.
This splits up the sh intc core in to something more vaguely resembling a subsystem. Most of the functionality was alread fairly well compartmentalized, and there were only a handful of interdependencies that needed to be resolved in the process. This also serves as future-proofing for the genirq and sparseirq rework, which will make some of the split out functionality wholly generic, allowing things to be killed off in place with minimal migration pain. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent d74310d commit 2be6bb0

14 files changed

Lines changed: 2052 additions & 1809 deletions

File tree

‎drivers/sh/Kconfig‎

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
1-
config INTC_USERIMASK
2-
bool "Userspace interrupt masking support"
3-
depends on ARCH_SHMOBILE || (SUPERH && CPU_SH4A)
4-
help
5-
This enables support for hardware-assisted userspace hardirq
6-
masking.
1+
menu "SuperH / SH-Mobile Driver Options"
72

8-
SH-4A and newer interrupt blocks all support a special shadowed
9-
page with all non-masking registers obscured when mapped in to
10-
userspace. This is primarily for use by userspace device
11-
drivers that are using special priority levels.
3+
source "drivers/sh/intc/Kconfig"
124

13-
If in doubt, say N.
14-
15-
config INTC_BALANCING
16-
bool "Hardware IRQ balancing support"
17-
depends on SMP && SUPERH && CPU_SHX3
18-
help
19-
This enables support for IRQ auto-distribution mode on SH-X3
20-
SMP parts. All of the balancing and CPU wakeup decisions are
21-
taken care of automatically by hardware for distributed
22-
vectors.
23-
24-
If in doubt, say N.
25-
26-
config INTC_MAPPING_DEBUG
27-
bool "Expose IRQ to per-controller id mapping via debugfs"
28-
depends on DEBUG_FS
29-
help
30-
This will create a debugfs entry for showing the relationship
31-
between system IRQs and the per-controller id tables.
32-
33-
If in doubt, say N.
5+
endmenu

‎drivers/sh/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Makefile for the SuperH specific drivers.
33
#
4-
obj-y := clk.o intc.o
4+
obj-y := clk.o intc/
55

66
obj-$(CONFIG_SUPERHYWAY) += superhyway/
77
obj-$(CONFIG_MAPLE) += maple/

0 commit comments

Comments
 (0)