aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/jz4740/Kconfig
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2020-09-06 21:29:31 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-09-18 16:33:59 +0200
commitf0f4a753079c636d5d43a102edbde0dad1e7de51 (patch)
tree53249dace98d456e5b5139ee8e578967ecf39890 /arch/mips/jz4740/Kconfig
parentMIPS: generic: Increase NR_IRQS to 256 (diff)
downloadlinux-dev-f0f4a753079c636d5d43a102edbde0dad1e7de51.tar.xz
linux-dev-f0f4a753079c636d5d43a102edbde0dad1e7de51.zip
MIPS: generic: Add support for Ingenic SoCs
Add support for Ingenic SoCs in arch/mips/generic/. The Kconfig changes are here to ensure that it is possible to compile either a generic kernel that supports Ingenic SoCs, or a Ingenic-only kernel, both using the same code base, to avoid duplicated code. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/jz4740/Kconfig')
-rw-r--r--arch/mips/jz4740/Kconfig16
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/mips/jz4740/Kconfig b/arch/mips/jz4740/Kconfig
index c2a6fbf8e411..3238e16febd5 100644
--- a/arch/mips/jz4740/Kconfig
+++ b/arch/mips/jz4740/Kconfig
@@ -1,15 +1,21 @@
# SPDX-License-Identifier: GPL-2.0
+
+config MACH_INGENIC_GENERIC
+ bool
+ select MACH_INGENIC
+ select MACH_JZ4740
+ select MACH_JZ4770
+ select MACH_JZ4780
+ select MACH_X1000
+
choice
prompt "Machine type"
- depends on MACH_INGENIC
+ depends on MACH_INGENIC_SOC
default INGENIC_GENERIC_BOARD
config INGENIC_GENERIC_BOARD
bool "Generic board"
- select MACH_JZ4740
- select MACH_JZ4770
- select MACH_JZ4780
- select MACH_X1000
+ select MACH_INGENIC_GENERIC
config JZ4740_QI_LB60
bool "Qi Hardware Ben NanoNote"