^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config SH_INTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) select IRQ_DOMAIN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) if SH_INTC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) comment "Interrupt controller options"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) config INTC_USERIMASK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) bool "Userspace interrupt masking support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) depends on (SUPERH && CPU_SH4A) || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) This enables support for hardware-assisted userspace hardirq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) masking.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) SH-4A and newer interrupt blocks all support a special shadowed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) page with all non-masking registers obscured when mapped in to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) userspace. This is primarily for use by userspace device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) drivers that are using special priority levels.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) If in doubt, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) config INTC_BALANCING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) bool "Hardware IRQ balancing support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) depends on SMP && SUPERH && CPU_SHX3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) This enables support for IRQ auto-distribution mode on SH-X3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) SMP parts. All of the balancing and CPU wakeup decisions are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) taken care of automatically by hardware for distributed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) vectors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) If in doubt, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) config INTC_MAPPING_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) bool "Expose IRQ to per-controller id mapping via debugfs"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) depends on DEBUG_FS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) This will create a debugfs entry for showing the relationship
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) between system IRQs and the per-controller id tables.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) If in doubt, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) endif