1 # SPDX-License-Identifier: GPL-2.0-only
4 select ARCH_32BIT_OFF_T
5 select ARCH_HAS_DMA_PREP_COHERENT
6 select ARCH_HAS_GCOV_PROFILE_ALL
7 select ARCH_HAS_SYNC_DMA_FOR_CPU
8 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
9 select ARCH_USE_BUILTIN_BSWAP
10 select ARCH_USE_QUEUED_RWLOCKS if NR_CPUS>2
11 select ARCH_WANT_FRAME_POINTERS if !CPU_CK610
14 select CSKY_MPINTC if CPU_CK860
15 select CSKY_MP_TIMER if CPU_CK860
17 select DMA_DIRECT_REMAP
19 select HANDLE_DOMAIN_IRQ
20 select DW_APB_TIMER_OF
21 select GENERIC_IOREMAP
22 select GENERIC_LIB_ASHLDI3
23 select GENERIC_LIB_ASHRDI3
24 select GENERIC_LIB_LSHRDI3
25 select GENERIC_LIB_MULDI3
26 select GENERIC_LIB_CMPDI2
27 select GENERIC_LIB_UCMPDI2
28 select GENERIC_ALLOCATOR
29 select GENERIC_ATOMIC64
30 select GENERIC_CLOCKEVENTS
31 select GENERIC_CPU_DEVICES
32 select GENERIC_IRQ_CHIP
33 select GENERIC_IRQ_PROBE
34 select GENERIC_IRQ_SHOW
35 select GENERIC_IRQ_MULTI_HANDLER
36 select GENERIC_SCHED_CLOCK
37 select GENERIC_SMP_IDLE_THREAD
38 select GX6605S_TIMER if CPU_CK610
39 select HAVE_ARCH_TRACEHOOK
40 select HAVE_ARCH_AUDITSYSCALL
41 select HAVE_COPY_THREAD_TLS
42 select HAVE_DEBUG_BUGVERBOSE
43 select HAVE_DYNAMIC_FTRACE
44 select HAVE_DYNAMIC_FTRACE_WITH_REGS
45 select HAVE_FUNCTION_TRACER
46 select HAVE_FUNCTION_GRAPH_TRACER
47 select HAVE_FTRACE_MCOUNT_RECORD
48 select HAVE_KERNEL_GZIP
49 select HAVE_KERNEL_LZO
50 select HAVE_KERNEL_LZMA
51 select HAVE_KPROBES if !CPU_CK610
52 select HAVE_KPROBES_ON_FTRACE if !CPU_CK610
53 select HAVE_KRETPROBES if !CPU_CK610
54 select HAVE_PERF_EVENTS
56 select HAVE_PERF_USER_STACK_DUMP
57 select HAVE_DMA_CONTIGUOUS
58 select HAVE_REGS_AND_STACK_ACCESS_API
60 select HAVE_STACKPROTECTOR
61 select HAVE_SYSCALL_TRACEPOINTS
62 select MAY_HAVE_SPARSE_IRQ
63 select MODULES_USE_ELF_RELA if MODULES
65 select OF_EARLY_FLATTREE
66 select PERF_USE_VMALLOC if CPU_CK610
69 select USB_ARCH_HAS_EHCI
70 select USB_ARCH_HAS_OHCI
71 select GENERIC_PCI_IOMAP
73 select PCI_DOMAINS_GENERIC if PCI
74 select PCI_SYSCALL if PCI
77 config LOCKDEP_SUPPORT
80 config ARCH_SUPPORTS_UPROBES
81 def_bool y if !CPU_CK610
83 config CPU_HAS_CACHEV2
98 For SMP, CPU needs "ldex&stex" instructions for atomic operations.
100 config CPU_NEED_TLBSYNC
103 config CPU_NEED_SOFTALIGN
106 config CPU_NO_USER_BKPT
109 For abiv2 we couldn't use "trap 1" as user space bkpt in gdbserver, because
110 abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
111 So we need a 16bit instruction as user space bkpt, and it will cause an illegal
112 instruction exception.
113 In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.
115 config GENERIC_CALIBRATE_DELAY
121 config GENERIC_HWEIGHT
127 config STACKTRACE_SUPPORT
133 config TRACE_IRQFLAGS_SUPPORT
138 default "128" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
139 default "1024" if (CPU_CK860)
143 default "8" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
144 default "12" if (CPU_CK860)
146 config L1_CACHE_SHIFT
148 default "4" if (CPU_CK610)
149 default "5" if (CPU_CK807 || CPU_CK810)
150 default "6" if (CPU_CK860)
152 menu "Processor type and features"
159 bool "CSKY CPU ck610"
160 select CPU_NEED_TLBSYNC
161 select CPU_NEED_SOFTALIGN
162 select CPU_NO_USER_BKPT
165 bool "CSKY CPU ck810"
167 select CPU_NEED_TLBSYNC
170 bool "CSKY CPU ck807"
174 bool "CSKY CPU ck860"
176 select CPU_HAS_CACHEV2
177 select CPU_HAS_LDSTEX
182 prompt "C-SKY PMU type"
183 depends on PERF_EVENTS
184 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
190 bool "Performance Monitoring Unit Ver.1"
195 prompt "Power Manager Instruction (wait/doze/stop)"
212 bool "Tightly-Coupled/Sram Memory"
213 select GENERIC_ALLOCATOR
215 The implementation are not only used by TCM (Tightly-Coupled Meory)
216 but also used by sram on SOC bus. It follow existed linux tcm
217 software interface, so that old tcm application codes could be
226 int "Page count of ITCM size: NR*4KB"
239 int "Page count of DTCM size: NR*4KB"
246 bool "CPU has VDSP coprocessor"
247 depends on CPU_HAS_FPU && CPU_HAS_FPUV2
250 bool "CPU has FPU coprocessor"
251 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
253 config CPU_HAS_ICACHE_INS
254 bool "CPU has Icache invalidate instructions"
255 depends on CPU_HAS_CACHEV2
258 bool "CPU has Trusted Execution Environment"
262 bool "Symmetric Multi-Processing (SMP) support for C-SKY"
267 int "Maximum number of CPUs (2-32)"
273 bool "High Memory Support"
274 depends on !CPU_CK610
277 config FORCE_MAX_ZONEORDER
278 int "Maximum zone order"
282 hex "DRAM start addr (the same with memory-section in dts)"
286 bool "Support for hot-pluggable CPUs"
287 select GENERIC_IRQ_MIGRATION
290 Say Y here to allow turning CPUs off and on. CPUs can be
291 controlled through /sys/devices/system/cpu/cpu1/hotplug/target.
293 Say N if you want to disable CPU hotplug.
296 source "arch/csky/Kconfig.platforms"
298 source "kernel/Kconfig.hz"