# SPDX-License-Identifier: GPL-2.0-only
config [31mCONFIG_CSKY[0m
def_bool y
select [31mCONFIG_ARCH_32BIT_OFF_T[0m
select [31mCONFIG_ARCH_HAS_DMA_PREP_COHERENT[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE[0m
select [31mCONFIG_ARCH_USE_BUILTIN_BSWAP[0m
select [31mCONFIG_ARCH_USE_QUEUED_RWLOCKS[0m if [31mCONFIG_NR_CPUS[0m>2
select [31mCONFIG_COMMON_CLK[0m
select [31mCONFIG_CLKSRC_MMIO[0m
select [31mCONFIG_CLKSRC_OF[0m
select [31mCONFIG_CSKY_MPINTC[0m if [31mCONFIG_CPU_CK860[0m
select [31mCONFIG_CSKY_MP_TIMER[0m if [31mCONFIG_CPU_CK860[0m
select [31mCONFIG_CSKY_APB_INTC[0m
select [31mCONFIG_DMA_DIRECT_REMAP[0m
select [31mCONFIG_IRQ_DOMAIN[0m
select [31mCONFIG_HANDLE_DOMAIN_IRQ[0m
select [31mCONFIG_DW_APB_TIMER_OF[0m
select [31mCONFIG_GENERIC_LIB_ASHLDI3[0m
select [31mCONFIG_GENERIC_LIB_ASHRDI3[0m
select [31mCONFIG_GENERIC_LIB_LSHRDI3[0m
select [31mCONFIG_GENERIC_LIB_MULDI3[0m
select [31mCONFIG_GENERIC_LIB_CMPDI2[0m
select [31mCONFIG_GENERIC_LIB_UCMPDI2[0m
select [31mCONFIG_GENERIC_ALLOCATOR[0m
select [31mCONFIG_GENERIC_ATOMIC64[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_GENERIC_CPU_DEVICES[0m
select [31mCONFIG_GENERIC_IRQ_CHIP[0m
select [31mCONFIG_GENERIC_IRQ_PROBE[0m
select [31mCONFIG_GENERIC_IRQ_SHOW[0m
select [31mCONFIG_GENERIC_IRQ_MULTI_HANDLER[0m
select [31mCONFIG_GENERIC_SCHED_CLOCK[0m
select [31mCONFIG_GENERIC_SMP_IDLE_THREAD[0m
select [31mCONFIG_GX6605S_TIMER[0m if [31mCONFIG_CPU_CK610[0m
select [31mCONFIG_HAVE_ARCH_TRACEHOOK[0m
select [31mCONFIG_HAVE_ARCH_AUDITSYSCALL[0m
select [31mCONFIG_HAVE_DYNAMIC_FTRACE[0m
select [31mCONFIG_HAVE_FUNCTION_TRACER[0m
select [31mCONFIG_HAVE_FUNCTION_GRAPH_TRACER[0m
select [31mCONFIG_HAVE_FTRACE_MCOUNT_RECORD[0m
select [31mCONFIG_HAVE_KERNEL_GZIP[0m
select [31mCONFIG_HAVE_KERNEL_LZO[0m
select [31mCONFIG_HAVE_KERNEL_LZMA[0m
select [31mCONFIG_HAVE_PERF_EVENTS[0m
select [31mCONFIG_HAVE_PERF_REGS[0m
select [31mCONFIG_HAVE_PERF_USER_STACK_DUMP[0m
select [31mCONFIG_HAVE_DMA_API_DEBUG[0m
select [31mCONFIG_HAVE_DMA_CONTIGUOUS[0m
select [31mCONFIG_HAVE_SYSCALL_TRACEPOINTS[0m
select [31mCONFIG_MAY_HAVE_SPARSE_IRQ[0m
select [31mCONFIG_MODULES_USE_ELF_RELA[0m if [31mCONFIG_MODULES[0m
select [31mCONFIG_OF[0m
select [31mCONFIG_OF_EARLY_FLATTREE[0m
select [31mCONFIG_PERF_USE_VMALLOC[0m if [31mCONFIG_CPU_CK610[0m
select [31mCONFIG_RTC_LIB[0m
select [31mCONFIG_TIMER_OF[0m
select USB_ARCH_HAS_EHCI
select USB_ARCH_HAS_OHCI
config [31mCONFIG_CPU_HAS_CACHEV2[0m
bool
config [31mCONFIG_CPU_HAS_FPUV2[0m
bool
config [31mCONFIG_CPU_HAS_HILO[0m
bool
config [31mCONFIG_CPU_HAS_TLBI[0m
bool
config [31mCONFIG_CPU_HAS_LDSTEX[0m
bool
help
For [31mCONFIG_SMP[0m, CPU needs "ldex&stex" instrcutions to atomic operations.
config [31mCONFIG_CPU_NEED_TLBSYNC[0m
bool
config [31mCONFIG_CPU_NEED_SOFTALIGN[0m
bool
config [31mCONFIG_CPU_NO_USER_BKPT[0m
bool
help
For abiv2 we couldn't use "trap 1" as user space bkpt in gdbserver, because
abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
So we need a 16bit instruction as user space bkpt, and it will cause an illegal
instruction exception.
In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.
config [31mCONFIG_GENERIC_CALIBRATE_DELAY[0m
def_bool y
config [31mCONFIG_GENERIC_CSUM[0m
def_bool y
config [31mCONFIG_GENERIC_HWEIGHT[0m
def_bool y
config [31mCONFIG_MMU[0m
def_bool y
config [31mCONFIG_STACKTRACE_SUPPORT[0m
def_bool y
config [31mCONFIG_TIME_LOW_RES[0m
def_bool y
config [31mCONFIG_TRACE_IRQFLAGS_SUPPORT[0m
def_bool y
config [31mCONFIG_CPU_TLB_SIZE[0m
int
default "128" if ([31mCONFIG_CPU_CK610[0m || [31mCONFIG_CPU_CK807[0m || [31mCONFIG_CPU_CK810[0m)
default "1024" if ([31mCONFIG_CPU_CK860[0m)
config [31mCONFIG_CPU_ASID_BITS[0m
int
default "8" if ([31mCONFIG_CPU_CK610[0m || [31mCONFIG_CPU_CK807[0m || [31mCONFIG_CPU_CK810[0m)
default "12" if ([31mCONFIG_CPU_CK860[0m)
config [31mCONFIG_L1_CACHE_SHIFT[0m
int
default "4" if ([31mCONFIG_CPU_CK610[0m)
default "5" if ([31mCONFIG_CPU_CK807[0m || [31mCONFIG_CPU_CK810[0m)
default "6" if ([31mCONFIG_CPU_CK860[0m)
menu "Processor type and features"
choice
prompt "CPU MODEL"
default [31mCONFIG_CPU_CK807[0m
config [31mCONFIG_CPU_CK610[0m
bool "CSKY CPU ck610"
select [31mCONFIG_CPU_NEED_TLBSYNC[0m
select [31mCONFIG_CPU_NEED_SOFTALIGN[0m
select [31mCONFIG_CPU_NO_USER_BKPT[0m
config [31mCONFIG_CPU_CK810[0m
bool "CSKY CPU ck810"
select [31mCONFIG_CPU_HAS_HILO[0m
select [31mCONFIG_CPU_NEED_TLBSYNC[0m
config [31mCONFIG_CPU_CK807[0m
bool "CSKY CPU ck807"
select [31mCONFIG_CPU_HAS_HILO[0m
config [31mCONFIG_CPU_CK860[0m
bool "CSKY CPU ck860"
select [31mCONFIG_CPU_HAS_TLBI[0m
select [31mCONFIG_CPU_HAS_CACHEV2[0m
select [31mCONFIG_CPU_HAS_LDSTEX[0m
select [31mCONFIG_CPU_HAS_FPUV2[0m
endchoice
choice
prompt "C-SKY PMU type"
depends on [31mCONFIG_PERF_EVENTS[0m
depends on [31mCONFIG_CPU_CK807[0m || [31mCONFIG_CPU_CK810[0m || [31mCONFIG_CPU_CK860[0m
config [31mCONFIG_CPU_PMU_NONE[0m
bool "None"
config [31mCONFIG_CSKY_PMU_V1[0m
bool "Performance Monitoring Unit Ver.1"
endchoice
choice
prompt "Power Manager Instruction (wait/doze/stop)"
default [31mCONFIG_CPU_PM_NONE[0m
config [31mCONFIG_CPU_PM_NONE[0m
bool "None"
config [31mCONFIG_CPU_PM_WAIT[0m
bool "wait"
config [31mCONFIG_CPU_PM_DOZE[0m
bool "doze"
config [31mCONFIG_CPU_PM_STOP[0m
bool "stop"
endchoice
config [31mCONFIG_CPU_HAS_VDSP[0m
bool "CPU has VDSP coprocessor"
depends on [31mCONFIG_CPU_HAS_FPU[0m && [31mCONFIG_CPU_HAS_FPUV2[0m
config [31mCONFIG_CPU_HAS_FPU[0m
bool "CPU has FPU coprocessor"
depends on [31mCONFIG_CPU_CK807[0m || [31mCONFIG_CPU_CK810[0m || [31mCONFIG_CPU_CK860[0m
config [31mCONFIG_CPU_HAS_TEE[0m
bool "CPU has Trusted Execution Environment"
depends on [31mCONFIG_CPU_CK810[0m
config [31mCONFIG_SMP[0m
bool "Symmetric Multi-Processing (SMP) support for C-SKY"
depends on [31mCONFIG_CPU_CK860[0m
default n
config [31mCONFIG_NR_CPUS[0m
int "Maximum number of CPUs (2-32)"
range 2 32
depends on [31mCONFIG_SMP[0m
default "2"
config [31mCONFIG_HIGHMEM[0m
bool "High Memory Support"
depends on ![31mCONFIG_CPU_CK610[0m
default y
config [31mCONFIG_FORCE_MAX_ZONEORDER[0m
int "Maximum zone order"
default "11"
config [31mCONFIG_RAM_BASE[0m
hex "DRAM start addr (the same with memory-section in dts)"
default 0x0
config [31mCONFIG_HOTPLUG_CPU[0m
bool "Support for hot-pluggable CPUs"
select [31mCONFIG_GENERIC_IRQ_MIGRATION[0m
depends on [31mCONFIG_SMP[0m
help
Say Y here to allow turning CPUs off and on. CPUs can be
controlled through /sys/devices/system/cpu/cpu1/hotplug/target.
Say N if you want to disable CPU hotplug.
endmenu
source "kernel/Kconfig.hz"