forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/nds32/Kconfig
....@@ -1,22 +1,26 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # For a description of the syntax of this configuration file,
3
-# see Documentation/kbuild/kconfig-language.txt.
4
+# see Documentation/kbuild/kconfig-language.rst.
45 #
56
67 config NDS32
7
- def_bool y
8
+ def_bool y
9
+ select ARCH_32BIT_OFF_T
10
+ select ARCH_HAS_DMA_PREP_COHERENT
811 select ARCH_HAS_SYNC_DMA_FOR_CPU
912 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1013 select ARCH_WANT_FRAME_POINTERS if FTRACE
1114 select CLKSRC_MMIO
1215 select CLONE_BACKWARDS
1316 select COMMON_CLK
14
- select DMA_NONCOHERENT_OPS
17
+ select DMA_DIRECT_REMAP
1518 select GENERIC_ATOMIC64
1619 select GENERIC_CPU_DEVICES
1720 select GENERIC_CLOCKEVENTS
1821 select GENERIC_IRQ_CHIP
1922 select GENERIC_IRQ_SHOW
23
+ select GENERIC_IOREMAP
2024 select GENERIC_LIB_ASHLDI3
2125 select GENERIC_LIB_ASHRDI3
2226 select GENERIC_LIB_CMPDI2
....@@ -29,14 +33,14 @@
2933 select HANDLE_DOMAIN_IRQ
3034 select HAVE_ARCH_TRACEHOOK
3135 select HAVE_DEBUG_KMEMLEAK
32
- select HAVE_MEMBLOCK
36
+ select HAVE_EXIT_THREAD
3337 select HAVE_REGS_AND_STACK_ACCESS_API
38
+ select HAVE_PERF_EVENTS
3439 select IRQ_DOMAIN
3540 select LOCKDEP_SUPPORT
3641 select MODULES_USE_ELF_RELA
3742 select OF
3843 select OF_EARLY_FLATTREE
39
- select NO_BOOTMEM
4044 select NO_IOPORT_MAP
4145 select RTC_LIB
4246 select THREAD_INFO_IN_TASK
....@@ -44,6 +48,7 @@
4448 select HAVE_FUNCTION_GRAPH_TRACER
4549 select HAVE_FTRACE_MCOUNT_RECORD
4650 select HAVE_DYNAMIC_FTRACE
51
+ select SET_FS
4752 help
4853 Andes(nds32) Linux support.
4954
....@@ -51,23 +56,20 @@
5156 def_bool y
5257
5358 config GENERIC_CSUM
54
- def_bool y
59
+ def_bool y
5560
5661 config GENERIC_HWEIGHT
57
- def_bool y
62
+ def_bool y
5863
5964 config GENERIC_LOCKBREAK
60
- def_bool y
61
- depends on PREEMPT
62
-
63
-config RWSEM_GENERIC_SPINLOCK
6465 def_bool y
66
+ depends on PREEMPTION
6567
6668 config TRACE_IRQFLAGS_SUPPORT
6769 def_bool y
6870
6971 config STACKTRACE_SUPPORT
70
- def_bool y
72
+ def_bool y
7173
7274 config FIX_EARLYCON_MEM
7375 def_bool y
....@@ -82,11 +84,11 @@
8284 default 1
8385
8486 config MMU
85
- def_bool y
87
+ def_bool y
8688
8789 config NDS32_BUILTIN_DTB
88
- string "Builtin DTB"
89
- default ""
90
+ string "Builtin DTB"
91
+ default ""
9092 help
9193 User can use it to specify the dts of the SoC
9294 endmenu
....@@ -94,3 +96,13 @@
9496 menu "Kernel Features"
9597 source "kernel/Kconfig.hz"
9698 endmenu
99
+
100
+menu "Power management options"
101
+config SYS_SUPPORTS_APM_EMULATION
102
+ bool
103
+
104
+config ARCH_SUSPEND_POSSIBLE
105
+ def_bool y
106
+
107
+source "kernel/power/Kconfig"
108
+endmenu