Kconfig 2.1 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
G
Greentime Hu 已提交
2 3
#
# For a description of the syntax of this configuration file,
4
# see Documentation/kbuild/kconfig-language.rst.
G
Greentime Hu 已提交
5 6 7
#

config NDS32
8
	def_bool y
9
	select ARCH_32BIT_OFF_T
10
	select ARCH_HAS_DMA_PREP_COHERENT
11 12
	select ARCH_HAS_SYNC_DMA_FOR_CPU
	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
G
Greentime Hu 已提交
13 14 15 16
	select ARCH_WANT_FRAME_POINTERS if FTRACE
	select CLKSRC_MMIO
	select CLONE_BACKWARDS
	select COMMON_CLK
17
	select DMA_DIRECT_REMAP
G
Greentime Hu 已提交
18 19 20 21 22
	select GENERIC_ATOMIC64
	select GENERIC_CPU_DEVICES
	select GENERIC_CLOCKEVENTS
	select GENERIC_IRQ_CHIP
	select GENERIC_IRQ_SHOW
C
Christoph Hellwig 已提交
23
	select GENERIC_IOREMAP
24 25 26 27 28 29
	select GENERIC_LIB_ASHLDI3
	select GENERIC_LIB_ASHRDI3
	select GENERIC_LIB_CMPDI2
	select GENERIC_LIB_LSHRDI3
	select GENERIC_LIB_MULDI3
	select GENERIC_LIB_UCMPDI2
G
Greentime Hu 已提交
30 31 32 33 34 35
	select GENERIC_STRNCPY_FROM_USER
	select GENERIC_STRNLEN_USER
	select GENERIC_TIME_VSYSCALL
	select HANDLE_DOMAIN_IRQ
	select HAVE_ARCH_TRACEHOOK
	select HAVE_DEBUG_KMEMLEAK
V
Vincent Chen 已提交
36
	select HAVE_EXIT_THREAD
G
Greentime Hu 已提交
37
	select HAVE_REGS_AND_STACK_ACCESS_API
N
Nickhu 已提交
38
	select HAVE_PERF_EVENTS
G
Greentime Hu 已提交
39 40 41 42 43 44 45 46
	select IRQ_DOMAIN
	select LOCKDEP_SUPPORT
	select MODULES_USE_ELF_RELA
	select OF
	select OF_EARLY_FLATTREE
	select NO_IOPORT_MAP
	select RTC_LIB
	select THREAD_INFO_IN_TASK
47
	select HAVE_FUNCTION_TRACER
48
	select HAVE_FUNCTION_GRAPH_TRACER
49
	select HAVE_FTRACE_MCOUNT_RECORD
50
	select HAVE_DYNAMIC_FTRACE
G
Greentime Hu 已提交
51 52 53 54 55 56 57
	help
	  Andes(nds32) Linux support.

config GENERIC_CALIBRATE_DELAY
	def_bool y

config GENERIC_CSUM
58
	def_bool y
G
Greentime Hu 已提交
59 60

config GENERIC_HWEIGHT
61
	def_bool y
G
Greentime Hu 已提交
62 63

config GENERIC_LOCKBREAK
64
	def_bool y
G
Greentime Hu 已提交
65 66 67 68 69 70
	depends on PREEMPT

config TRACE_IRQFLAGS_SUPPORT
	def_bool y

config STACKTRACE_SUPPORT
71
	def_bool y
G
Greentime Hu 已提交
72 73 74 75 76 77 78 79 80 81 82 83 84 85

config FIX_EARLYCON_MEM
	def_bool y

config PGTABLE_LEVELS
	default 2

menu "System Type"
source "arch/nds32/Kconfig.cpu"
config NR_CPUS
	int
	default 1

config MMU
86
	def_bool y
G
Greentime Hu 已提交
87 88

config NDS32_BUILTIN_DTB
89 90
	string "Builtin DTB"
	default ""
G
Greentime Hu 已提交
91 92 93 94 95 96 97
	help
	  User can use it to specify the dts of the SoC
endmenu

menu "Kernel Features"
source "kernel/Kconfig.hz"
endmenu
N
Nick Hu 已提交
98 99 100 101 102 103 104 105 106 107

menu "Power management options"
config SYS_SUPPORTS_APM_EMULATION
	bool

config ARCH_SUSPEND_POSSIBLE
	def_bool y

source "kernel/power/Kconfig"
endmenu