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