xref: /linux/arch/nios2/Kconfig (revision 2fc8483f)
1*2fc8483fSLey Foon Tanconfig NIOS2
2*2fc8483fSLey Foon Tan	def_bool y
3*2fc8483fSLey Foon Tan	select ARCH_WANT_OPTIONAL_GPIOLIB
4*2fc8483fSLey Foon Tan	select CLKSRC_OF
5*2fc8483fSLey Foon Tan	select GENERIC_ATOMIC64
6*2fc8483fSLey Foon Tan	select GENERIC_CLOCKEVENTS
7*2fc8483fSLey Foon Tan	select GENERIC_CPU_DEVICES
8*2fc8483fSLey Foon Tan	select GENERIC_IRQ_PROBE
9*2fc8483fSLey Foon Tan	select GENERIC_IRQ_SHOW
10*2fc8483fSLey Foon Tan	select HAVE_ARCH_TRACEHOOK
11*2fc8483fSLey Foon Tan	select IRQ_DOMAIN
12*2fc8483fSLey Foon Tan	select MODULES_USE_ELF_RELA
13*2fc8483fSLey Foon Tan	select OF
14*2fc8483fSLey Foon Tan	select OF_EARLY_FLATTREE
15*2fc8483fSLey Foon Tan	select SOC_BUS
16*2fc8483fSLey Foon Tan	select SPARSE_IRQ
17*2fc8483fSLey Foon Tan	select USB_ARCH_HAS_HCD if USB_SUPPORT
18*2fc8483fSLey Foon Tan
19*2fc8483fSLey Foon Tanconfig GENERIC_CSUM
20*2fc8483fSLey Foon Tan	def_bool y
21*2fc8483fSLey Foon Tan
22*2fc8483fSLey Foon Tanconfig GENERIC_HWEIGHT
23*2fc8483fSLey Foon Tan	def_bool y
24*2fc8483fSLey Foon Tan
25*2fc8483fSLey Foon Tanconfig GENERIC_CALIBRATE_DELAY
26*2fc8483fSLey Foon Tan	def_bool y
27*2fc8483fSLey Foon Tan
28*2fc8483fSLey Foon Tanconfig NO_IOPORT_MAP
29*2fc8483fSLey Foon Tan	def_bool y
30*2fc8483fSLey Foon Tan
31*2fc8483fSLey Foon Tanconfig HAS_DMA
32*2fc8483fSLey Foon Tan	def_bool y
33*2fc8483fSLey Foon Tan
34*2fc8483fSLey Foon Tanconfig FPU
35*2fc8483fSLey Foon Tan	def_bool n
36*2fc8483fSLey Foon Tan
37*2fc8483fSLey Foon Tanconfig SWAP
38*2fc8483fSLey Foon Tan	def_bool n
39*2fc8483fSLey Foon Tan
40*2fc8483fSLey Foon Tanconfig RWSEM_GENERIC_SPINLOCK
41*2fc8483fSLey Foon Tan	def_bool y
42*2fc8483fSLey Foon Tan
43*2fc8483fSLey Foon Tanconfig TRACE_IRQFLAGS_SUPPORT
44*2fc8483fSLey Foon Tan	def_bool n
45*2fc8483fSLey Foon Tan
46*2fc8483fSLey Foon Tansource "init/Kconfig"
47*2fc8483fSLey Foon Tan
48*2fc8483fSLey Foon Tanmenu "Kernel features"
49*2fc8483fSLey Foon Tan
50*2fc8483fSLey Foon Tansource "kernel/Kconfig.preempt"
51*2fc8483fSLey Foon Tan
52*2fc8483fSLey Foon Tansource "kernel/Kconfig.freezer"
53*2fc8483fSLey Foon Tan
54*2fc8483fSLey Foon Tansource "kernel/Kconfig.hz"
55*2fc8483fSLey Foon Tan
56*2fc8483fSLey Foon Tansource "mm/Kconfig"
57*2fc8483fSLey Foon Tan
58*2fc8483fSLey Foon Tanconfig FORCE_MAX_ZONEORDER
59*2fc8483fSLey Foon Tan	int "Maximum zone order"
60*2fc8483fSLey Foon Tan	range 9 20
61*2fc8483fSLey Foon Tan	default "11"
62*2fc8483fSLey Foon Tan	help
63*2fc8483fSLey Foon Tan	  The kernel memory allocator divides physically contiguous memory
64*2fc8483fSLey Foon Tan	  blocks into "zones", where each zone is a power of two number of
65*2fc8483fSLey Foon Tan	  pages.  This option selects the largest power of two that the kernel
66*2fc8483fSLey Foon Tan	  keeps in the memory allocator.  If you need to allocate very large
67*2fc8483fSLey Foon Tan	  blocks of physically contiguous memory, then you may need to
68*2fc8483fSLey Foon Tan	  increase this value.
69*2fc8483fSLey Foon Tan
70*2fc8483fSLey Foon Tan	  This config option is actually maximum order plus one. For example,
71*2fc8483fSLey Foon Tan	  a value of 11 means that the largest free memory block is 2^10 pages.
72*2fc8483fSLey Foon Tan
73*2fc8483fSLey Foon Tanendmenu
74*2fc8483fSLey Foon Tan
75*2fc8483fSLey Foon Tansource "arch/nios2/platform/Kconfig.platform"
76*2fc8483fSLey Foon Tan
77*2fc8483fSLey Foon Tanmenu "Processor type and features"
78*2fc8483fSLey Foon Tan
79*2fc8483fSLey Foon Tanconfig MMU
80*2fc8483fSLey Foon Tan	def_bool y
81*2fc8483fSLey Foon Tan
82*2fc8483fSLey Foon Tanconfig NIOS2_ALIGNMENT_TRAP
83*2fc8483fSLey Foon Tan	bool "Catch alignment trap"
84*2fc8483fSLey Foon Tan	default y
85*2fc8483fSLey Foon Tan	help
86*2fc8483fSLey Foon Tan	  Nios II CPUs cannot fetch/store data which is not bus aligned,
87*2fc8483fSLey Foon Tan	  i.e., a 2 or 4 byte fetch must start at an address divisible by
88*2fc8483fSLey Foon Tan	  2 or 4. Any non-aligned load/store instructions will be trapped and
89*2fc8483fSLey Foon Tan	  emulated in software if you say Y here, which has a performance
90*2fc8483fSLey Foon Tan	  impact.
91*2fc8483fSLey Foon Tan
92*2fc8483fSLey Foon Tancomment "Boot options"
93*2fc8483fSLey Foon Tan
94*2fc8483fSLey Foon Tanconfig CMDLINE_BOOL
95*2fc8483fSLey Foon Tan	bool "Default bootloader kernel arguments"
96*2fc8483fSLey Foon Tan	default y
97*2fc8483fSLey Foon Tan
98*2fc8483fSLey Foon Tanconfig CMDLINE
99*2fc8483fSLey Foon Tan	string "Default kernel command string"
100*2fc8483fSLey Foon Tan	default ""
101*2fc8483fSLey Foon Tan	depends on CMDLINE_BOOL
102*2fc8483fSLey Foon Tan	help
103*2fc8483fSLey Foon Tan	  On some platforms, there is currently no way for the boot loader to
104*2fc8483fSLey Foon Tan	  pass arguments to the kernel. For these platforms, you can supply
105*2fc8483fSLey Foon Tan	  some command-line options at build time by entering them here.  In
106*2fc8483fSLey Foon Tan	  other cases you can specify kernel args so that you don't have
107*2fc8483fSLey Foon Tan	  to set them up in board prom initialization routines.
108*2fc8483fSLey Foon Tan
109*2fc8483fSLey Foon Tanconfig CMDLINE_FORCE
110*2fc8483fSLey Foon Tan	bool "Force default kernel command string"
111*2fc8483fSLey Foon Tan	depends on CMDLINE_BOOL
112*2fc8483fSLey Foon Tan	help
113*2fc8483fSLey Foon Tan	  Set this to have arguments from the default kernel command string
114*2fc8483fSLey Foon Tan	  override those passed by the boot loader.
115*2fc8483fSLey Foon Tan
116*2fc8483fSLey Foon Tanconfig NIOS2_CMDLINE_IGNORE_DTB
117*2fc8483fSLey Foon Tan	bool "Ignore kernel command string from DTB"
118*2fc8483fSLey Foon Tan	depends on !CMDLINE_FORCE
119*2fc8483fSLey Foon Tan	default y
120*2fc8483fSLey Foon Tan	help
121*2fc8483fSLey Foon Tan	  Set this to ignore the bootargs property from the devicetree's
122*2fc8483fSLey Foon Tan	  chosen node and fall back to CMDLINE if nothing is passed.
123*2fc8483fSLey Foon Tan
124*2fc8483fSLey Foon Tanconfig NIOS2_PASS_CMDLINE
125*2fc8483fSLey Foon Tan	bool "Passed kernel command line from u-boot"
126*2fc8483fSLey Foon Tan	default n
127*2fc8483fSLey Foon Tan	help
128*2fc8483fSLey Foon Tan	  Use bootargs env variable from u-boot for kernel command line.
129*2fc8483fSLey Foon Tan	  will override "Default kernel command string".
130*2fc8483fSLey Foon Tan	  Say N if you are unsure.
131*2fc8483fSLey Foon Tan
132*2fc8483fSLey Foon Tanendmenu
133*2fc8483fSLey Foon Tan
134*2fc8483fSLey Foon Tanmenu "Advanced setup"
135*2fc8483fSLey Foon Tan
136*2fc8483fSLey Foon Tanconfig ADVANCED_OPTIONS
137*2fc8483fSLey Foon Tan	bool "Prompt for advanced kernel configuration options"
138*2fc8483fSLey Foon Tan	help
139*2fc8483fSLey Foon Tan
140*2fc8483fSLey Foon Tancomment "Default settings for advanced configuration options are used"
141*2fc8483fSLey Foon Tan	depends on !ADVANCED_OPTIONS
142*2fc8483fSLey Foon Tan
143*2fc8483fSLey Foon Tanconfig NIOS2_KERNEL_MMU_REGION_BASE_BOOL
144*2fc8483fSLey Foon Tan	bool "Set custom kernel MMU region base address"
145*2fc8483fSLey Foon Tan	depends on ADVANCED_OPTIONS
146*2fc8483fSLey Foon Tan	help
147*2fc8483fSLey Foon Tan	  This option allows you to set the virtual address of the kernel MMU region.
148*2fc8483fSLey Foon Tan
149*2fc8483fSLey Foon Tan	  Say N here unless you know what you are doing.
150*2fc8483fSLey Foon Tan
151*2fc8483fSLey Foon Tanconfig NIOS2_KERNEL_MMU_REGION_BASE
152*2fc8483fSLey Foon Tan	hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
153*2fc8483fSLey Foon Tan	default "0x80000000"
154*2fc8483fSLey Foon Tan	help
155*2fc8483fSLey Foon Tan	  This option allows you to set the virtual base address of the kernel MMU region.
156*2fc8483fSLey Foon Tan
157*2fc8483fSLey Foon Tanconfig NIOS2_KERNEL_REGION_BASE_BOOL
158*2fc8483fSLey Foon Tan	bool "Set custom kernel region base address"
159*2fc8483fSLey Foon Tan	depends on ADVANCED_OPTIONS
160*2fc8483fSLey Foon Tan	help
161*2fc8483fSLey Foon Tan	  This option allows you to set the virtual address of the kernel region.
162*2fc8483fSLey Foon Tan
163*2fc8483fSLey Foon Tan	  Say N here unless you know what you are doing.
164*2fc8483fSLey Foon Tan
165*2fc8483fSLey Foon Tanconfig NIOS2_KERNEL_REGION_BASE
166*2fc8483fSLey Foon Tan	hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
167*2fc8483fSLey Foon Tan	default "0xc0000000"
168*2fc8483fSLey Foon Tan
169*2fc8483fSLey Foon Tanconfig NIOS2_IO_REGION_BASE_BOOL
170*2fc8483fSLey Foon Tan	bool "Set custom I/O region base address"
171*2fc8483fSLey Foon Tan	depends on ADVANCED_OPTIONS
172*2fc8483fSLey Foon Tan	help
173*2fc8483fSLey Foon Tan	  This option allows you to set the virtual address of the I/O region.
174*2fc8483fSLey Foon Tan
175*2fc8483fSLey Foon Tan	  Say N here unless you know what you are doing.
176*2fc8483fSLey Foon Tan
177*2fc8483fSLey Foon Tanconfig NIOS2_IO_REGION_BASE
178*2fc8483fSLey Foon Tan	hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
179*2fc8483fSLey Foon Tan	default "0xe0000000"
180*2fc8483fSLey Foon Tan
181*2fc8483fSLey Foon Tanendmenu
182*2fc8483fSLey Foon Tan
183*2fc8483fSLey Foon Tanmenu "Executable file formats"
184*2fc8483fSLey Foon Tan
185*2fc8483fSLey Foon Tansource "fs/Kconfig.binfmt"
186*2fc8483fSLey Foon Tan
187*2fc8483fSLey Foon Tanendmenu
188*2fc8483fSLey Foon Tan
189*2fc8483fSLey Foon Tansource "net/Kconfig"
190*2fc8483fSLey Foon Tan
191*2fc8483fSLey Foon Tansource "drivers/Kconfig"
192*2fc8483fSLey Foon Tan
193*2fc8483fSLey Foon Tansource "fs/Kconfig"
194*2fc8483fSLey Foon Tan
195*2fc8483fSLey Foon Tansource "arch/nios2/Kconfig.debug"
196*2fc8483fSLey Foon Tan
197*2fc8483fSLey Foon Tansource "security/Kconfig"
198*2fc8483fSLey Foon Tan
199*2fc8483fSLey Foon Tansource "crypto/Kconfig"
200*2fc8483fSLey Foon Tan
201*2fc8483fSLey Foon Tansource "lib/Kconfig"
202