Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip: Define EXYNOS_IRQ_COMBINER

This patch is written to clean up dependency of ARCH_EXYNOS
Not all exynos device have IRQ_COMBINER, especially aarch64 EXYNOS
but it is built for all exynos devices.
Thus add the config for EXYNOS_IRQ_COMBINER
remove direct dependency between ARCH_EXYNOS and exynos-combiner.c
and only selected on the aarch32 devices

Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20191224211108.7128-1-hyunki00.koo@gmail.com

authored by

Hyunki Koo and committed by
Marc Zyngier
b74416db 8f78bd62

+9 -1
+1
arch/arm/mach-exynos/Kconfig
··· 12 12 select ARCH_SUPPORTS_BIG_ENDIAN 13 13 select ARM_AMBA 14 14 select ARM_GIC 15 + select EXYNOS_IRQ_COMBINER 15 16 select COMMON_CLK_SAMSUNG 16 17 select EXYNOS_ASV 17 18 select EXYNOS_CHIPID
+7
drivers/irqchip/Kconfig
··· 500 500 501 501 If you don't know what to do here, say Y. 502 502 503 + config EXYNOS_IRQ_COMBINER 504 + bool "Samsung Exynos IRQ combiner support" if COMPILE_TEST 505 + depends on (ARCH_EXYNOS && ARM) || COMPILE_TEST 506 + help 507 + Say yes here to add support for the IRQ combiner devices embedded 508 + in Samsung Exynos chips. 509 + 503 510 endmenu
+1 -1
drivers/irqchip/Makefile
··· 9 9 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2836.o 10 10 obj-$(CONFIG_DAVINCI_AINTC) += irq-davinci-aintc.o 11 11 obj-$(CONFIG_DAVINCI_CP_INTC) += irq-davinci-cp-intc.o 12 - obj-$(CONFIG_ARCH_EXYNOS) += exynos-combiner.o 12 + obj-$(CONFIG_EXYNOS_IRQ_COMBINER) += exynos-combiner.o 13 13 obj-$(CONFIG_FARADAY_FTINTC010) += irq-ftintc010.o 14 14 obj-$(CONFIG_ARCH_HIP04) += irq-hip04.o 15 15 obj-$(CONFIG_ARCH_LPC32XX) += irq-lpc32xx.o