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_SYNC_DMA_FOR_CPU
7 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
8 select ARCH_USE_BUILTIN_BSWAP
9 select ARCH_USE_QUEUED_RWLOCKS if NR_CPUS>2
12 select CSKY_MPINTC if CPU_CK860
13 select CSKY_MP_TIMER if CPU_CK860
15 select DMA_DIRECT_REMAP
17 select HANDLE_DOMAIN_IRQ
18 select DW_APB_TIMER_OF
19 select GENERIC_IOREMAP
20 select GENERIC_LIB_ASHLDI3
21 select GENERIC_LIB_ASHRDI3
22 select GENERIC_LIB_LSHRDI3
23 select GENERIC_LIB_MULDI3
24 select GENERIC_LIB_CMPDI2
25 select GENERIC_LIB_UCMPDI2
26 select GENERIC_ALLOCATOR
27 select GENERIC_ATOMIC64
28 select GENERIC_CLOCKEVENTS
29 select GENERIC_CPU_DEVICES
30 select GENERIC_IRQ_CHIP
31 select GENERIC_IRQ_PROBE
32 select GENERIC_IRQ_SHOW
33 select GENERIC_IRQ_MULTI_HANDLER
34 select GENERIC_SCHED_CLOCK
35 select GENERIC_SMP_IDLE_THREAD
36 select GX6605S_TIMER if CPU_CK610
37 select HAVE_ARCH_TRACEHOOK
38 select HAVE_ARCH_AUDITSYSCALL
39 select HAVE_DYNAMIC_FTRACE
40 select HAVE_FUNCTION_TRACER
41 select HAVE_FUNCTION_GRAPH_TRACER
42 select HAVE_FTRACE_MCOUNT_RECORD
43 select HAVE_KERNEL_GZIP
44 select HAVE_KERNEL_LZO
45 select HAVE_KERNEL_LZMA
46 select HAVE_PERF_EVENTS
48 select HAVE_PERF_USER_STACK_DUMP
49 select HAVE_DMA_CONTIGUOUS
50 select HAVE_STACKPROTECTOR
51 select HAVE_SYSCALL_TRACEPOINTS
52 select MAY_HAVE_SPARSE_IRQ
53 select MODULES_USE_ELF_RELA if MODULES
55 select OF_EARLY_FLATTREE
56 select PERF_USE_VMALLOC if CPU_CK610
59 select USB_ARCH_HAS_EHCI
60 select USB_ARCH_HAS_OHCI
62 config CPU_HAS_CACHEV2
77 For SMP, CPU needs "ldex&stex" instructions for atomic operations.
79 config CPU_NEED_TLBSYNC
82 config CPU_NEED_SOFTALIGN
85 config CPU_NO_USER_BKPT
88 For abiv2 we couldn't use "trap 1" as user space bkpt in gdbserver, because
89 abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
90 So we need a 16bit instruction as user space bkpt, and it will cause an illegal
91 instruction exception.
92 In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.
94 config GENERIC_CALIBRATE_DELAY
100 config GENERIC_HWEIGHT
106 config STACKTRACE_SUPPORT
112 config TRACE_IRQFLAGS_SUPPORT
117 default "128" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
118 default "1024" if (CPU_CK860)
122 default "8" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
123 default "12" if (CPU_CK860)
125 config L1_CACHE_SHIFT
127 default "4" if (CPU_CK610)
128 default "5" if (CPU_CK807 || CPU_CK810)
129 default "6" if (CPU_CK860)
131 menu "Processor type and features"
138 bool "CSKY CPU ck610"
139 select CPU_NEED_TLBSYNC
140 select CPU_NEED_SOFTALIGN
141 select CPU_NO_USER_BKPT
144 bool "CSKY CPU ck810"
146 select CPU_NEED_TLBSYNC
149 bool "CSKY CPU ck807"
153 bool "CSKY CPU ck860"
155 select CPU_HAS_CACHEV2
156 select CPU_HAS_LDSTEX
161 prompt "C-SKY PMU type"
162 depends on PERF_EVENTS
163 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
169 bool "Performance Monitoring Unit Ver.1"
174 prompt "Power Manager Instruction (wait/doze/stop)"
191 bool "Tightly-Coupled/Sram Memory"
192 select GENERIC_ALLOCATOR
194 The implementation are not only used by TCM (Tightly-Coupled Meory)
195 but also used by sram on SOC bus. It follow existed linux tcm
196 software interface, so that old tcm application codes could be
205 int "Page count of ITCM size: NR*4KB"
218 int "Page count of DTCM size: NR*4KB"
225 bool "CPU has VDSP coprocessor"
226 depends on CPU_HAS_FPU && CPU_HAS_FPUV2
229 bool "CPU has FPU coprocessor"
230 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
232 config CPU_HAS_ICACHE_INS
233 bool "CPU has Icache invalidate instructions"
234 depends on CPU_HAS_CACHEV2
237 bool "CPU has Trusted Execution Environment"
241 bool "Symmetric Multi-Processing (SMP) support for C-SKY"
246 int "Maximum number of CPUs (2-32)"
252 bool "High Memory Support"
253 depends on !CPU_CK610
256 config FORCE_MAX_ZONEORDER
257 int "Maximum zone order"
261 hex "DRAM start addr (the same with memory-section in dts)"
265 bool "Support for hot-pluggable CPUs"
266 select GENERIC_IRQ_MIGRATION
269 Say Y here to allow turning CPUs off and on. CPUs can be
270 controlled through /sys/devices/system/cpu/cpu1/hotplug/target.
272 Say N if you want to disable CPU hotplug.
275 source "arch/csky/Kconfig.platforms"
277 source "kernel/Kconfig.hz"