xref: /OK3568_Linux_fs/kernel/arch/c6x/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# For a description of the syntax of this configuration file,
4*4882a593Smuzhiyun# see Documentation/kbuild/kconfig-language.rst.
5*4882a593Smuzhiyun#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunconfig C6X
8*4882a593Smuzhiyun	def_bool y
9*4882a593Smuzhiyun	select ARCH_32BIT_OFF_T
10*4882a593Smuzhiyun	select ARCH_HAS_BINFMT_FLAT
11*4882a593Smuzhiyun	select ARCH_HAS_SYNC_DMA_FOR_CPU
12*4882a593Smuzhiyun	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
13*4882a593Smuzhiyun	select CLKDEV_LOOKUP
14*4882a593Smuzhiyun	select HAVE_LEGACY_CLK
15*4882a593Smuzhiyun	select GENERIC_ATOMIC64
16*4882a593Smuzhiyun	select GENERIC_IRQ_SHOW
17*4882a593Smuzhiyun	select HAVE_ARCH_TRACEHOOK
18*4882a593Smuzhiyun	select SPARSE_IRQ
19*4882a593Smuzhiyun	select IRQ_DOMAIN
20*4882a593Smuzhiyun	select OF
21*4882a593Smuzhiyun	select OF_EARLY_FLATTREE
22*4882a593Smuzhiyun	select GENERIC_CLOCKEVENTS
23*4882a593Smuzhiyun	select MODULES_USE_ELF_RELA
24*4882a593Smuzhiyun	select MMU_GATHER_NO_RANGE if MMU
25*4882a593Smuzhiyun	select SET_FS
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunconfig MMU
28*4882a593Smuzhiyun	def_bool n
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunconfig FPU
31*4882a593Smuzhiyun	def_bool n
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunconfig GENERIC_CALIBRATE_DELAY
34*4882a593Smuzhiyun	def_bool y
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunconfig GENERIC_HWEIGHT
37*4882a593Smuzhiyun	def_bool y
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunconfig GENERIC_BUG
40*4882a593Smuzhiyun	def_bool y
41*4882a593Smuzhiyun	depends on BUG
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunconfig C6X_BIG_KERNEL
44*4882a593Smuzhiyun	bool "Build a big kernel"
45*4882a593Smuzhiyun	help
46*4882a593Smuzhiyun	  The C6X function call instruction has a limited range of +/- 2MiB.
47*4882a593Smuzhiyun	  This is sufficient for most kernels, but some kernel configurations
48*4882a593Smuzhiyun	  with lots of compiled-in functionality may require a larger range
49*4882a593Smuzhiyun	  for function calls. Use this option to have the compiler generate
50*4882a593Smuzhiyun	  function calls with 32-bit range. This will make the kernel both
51*4882a593Smuzhiyun	  larger and slower.
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun	  If unsure, say N.
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun# Use the generic interrupt handling code in kernel/irq/
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunconfig CMDLINE_BOOL
58*4882a593Smuzhiyun	bool "Default bootloader kernel arguments"
59*4882a593Smuzhiyun
60*4882a593Smuzhiyunconfig CMDLINE
61*4882a593Smuzhiyun	string "Kernel command line"
62*4882a593Smuzhiyun	depends on CMDLINE_BOOL
63*4882a593Smuzhiyun	default "console=ttyS0,57600"
64*4882a593Smuzhiyun	help
65*4882a593Smuzhiyun	  On some architectures there is currently no way for the boot loader
66*4882a593Smuzhiyun	  to pass arguments to the kernel. For these architectures, you should
67*4882a593Smuzhiyun	  supply some command-line options at build time by entering them
68*4882a593Smuzhiyun	  here.
69*4882a593Smuzhiyun
70*4882a593Smuzhiyunconfig CMDLINE_FORCE
71*4882a593Smuzhiyun	bool "Force default kernel command string"
72*4882a593Smuzhiyun	depends on CMDLINE_BOOL
73*4882a593Smuzhiyun	default n
74*4882a593Smuzhiyun	help
75*4882a593Smuzhiyun	  Set this to have arguments from the default kernel command string
76*4882a593Smuzhiyun	  override those passed by the boot loader.
77*4882a593Smuzhiyun
78*4882a593Smuzhiyunconfig CPU_BIG_ENDIAN
79*4882a593Smuzhiyun	bool "Build big-endian kernel"
80*4882a593Smuzhiyun	default n
81*4882a593Smuzhiyun	help
82*4882a593Smuzhiyun	  Say Y if you plan on running a kernel in big-endian mode.
83*4882a593Smuzhiyun	  Note that your board must be properly built and your board
84*4882a593Smuzhiyun	  port must properly enable any big-endian related features
85*4882a593Smuzhiyun	  of your chipset/board/processor.
86*4882a593Smuzhiyun
87*4882a593Smuzhiyunconfig FORCE_MAX_ZONEORDER
88*4882a593Smuzhiyun	int "Maximum zone order"
89*4882a593Smuzhiyun	default "13"
90*4882a593Smuzhiyun	help
91*4882a593Smuzhiyun	  The kernel memory allocator divides physically contiguous memory
92*4882a593Smuzhiyun	  blocks into "zones", where each zone is a power of two number of
93*4882a593Smuzhiyun	  pages.  This option selects the largest power of two that the kernel
94*4882a593Smuzhiyun	  keeps in the memory allocator.  If you need to allocate very large
95*4882a593Smuzhiyun	  blocks of physically contiguous memory, then you may need to
96*4882a593Smuzhiyun	  increase this value.
97*4882a593Smuzhiyun
98*4882a593Smuzhiyun	  This config option is actually maximum order plus one. For example,
99*4882a593Smuzhiyun	  a value of 11 means that the largest free memory block is 2^10 pages.
100*4882a593Smuzhiyun
101*4882a593Smuzhiyunmenu "Processor type and features"
102*4882a593Smuzhiyun
103*4882a593Smuzhiyunsource "arch/c6x/platforms/Kconfig"
104*4882a593Smuzhiyun
105*4882a593Smuzhiyunconfig KERNEL_RAM_BASE_ADDRESS
106*4882a593Smuzhiyun	hex "Virtual address of memory base"
107*4882a593Smuzhiyun	default 0xe0000000 if SOC_TMS320C6455
108*4882a593Smuzhiyun	default 0xe0000000 if SOC_TMS320C6457
109*4882a593Smuzhiyun	default 0xe0000000 if SOC_TMS320C6472
110*4882a593Smuzhiyun	default 0x80000000
111*4882a593Smuzhiyun
112*4882a593Smuzhiyunsource "kernel/Kconfig.hz"
113*4882a593Smuzhiyun
114*4882a593Smuzhiyunendmenu
115