Kconfig: consolidate the "Kernel hacking" menu
[linux-2.6-block.git] / arch / unicore32 / Kconfig
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
790edb61
G
2config UNICORE32
3 def_bool y
21266be9 4 select ARCH_HAS_DEVMEM_IS_ALLOWED
e00ca515 5 select ARCH_MIGHT_HAVE_PC_PARPORT
d444b03b 6 select ARCH_MIGHT_HAVE_PC_SERIO
790edb61
G
7 select HAVE_MEMBLOCK
8 select HAVE_GENERIC_DMA_COHERENT
790edb61
G
9 select HAVE_KERNEL_GZIP
10 select HAVE_KERNEL_BZIP2
82e54a6a 11 select GENERIC_ATOMIC64
790edb61
G
12 select HAVE_KERNEL_LZO
13 select HAVE_KERNEL_LZMA
4febd95a 14 select VIRT_TO_BUS
7563bbf8 15 select ARCH_HAVE_CUSTOM_GPIO_H
790edb61
G
16 select GENERIC_FIND_FIRST_BIT
17 select GENERIC_IRQ_PROBE
37daf322 18 select GENERIC_IRQ_SHOW
790edb61 19 select ARCH_WANT_FRAME_POINTERS
4673ca8e 20 select GENERIC_IOMAP
786d35d4 21 select MODULES_USE_ELF_REL
f616ab59 22 select NEED_DMA_MAP_STATE
09230cbc 23 select SWIOTLB
790edb61
G
24 help
25 UniCore-32 is 32-bit Instruction Set Architecture,
26 including a series of low-power-consumption RISC chip
27 designs licensed by PKUnity Ltd.
28 Please see web page at <http://www.pkunity.com/>.
29
790edb61
G
30config GENERIC_CSUM
31 def_bool y
32
ce816fa8 33config NO_IOPORT_MAP
790edb61
G
34 bool
35
36config STACKTRACE_SUPPORT
37 def_bool y
38
790edb61
G
39config LOCKDEP_SUPPORT
40 def_bool y
41
42config RWSEM_GENERIC_SPINLOCK
43 def_bool y
44
45config RWSEM_XCHGADD_ALGORITHM
46 bool
47
48config ARCH_HAS_ILOG2_U32
49 bool
50
51config ARCH_HAS_ILOG2_U64
52 bool
53
790edb61
G
54config GENERIC_HWEIGHT
55 def_bool y
56
57config GENERIC_CALIBRATE_DELAY
58 def_bool y
59
60config ARCH_MAY_HAVE_PC_FDC
61 bool
62
446d141e
GX
63config ZONE_DMA
64 def_bool y
65
790edb61
G
66menu "System Type"
67
68config MMU
69 def_bool y
70
71config ARCH_FPGA
72 bool
73
74config ARCH_PUV3
75 def_bool y
76 select CPU_UCV2
77 select GENERIC_CLOCKEVENTS
78 select HAVE_CLK
c40d54a1 79 select GPIOLIB
790edb61
G
80
81# CONFIGs for ARCH_PUV3
82
83if ARCH_PUV3
84
85choice
86 prompt "Board Selection"
87 default PUV3_DB0913
88
89config PUV3_FPGA_DLX200
90 select ARCH_FPGA
91 bool "FPGA board"
92
93config PUV3_DB0913
94 bool "DEBUG board (0913)"
95
96config PUV3_NB0916
97 bool "NetBook board (0916)"
79c11b6f
TR
98 select PWM
99 select PWM_PUV3
790edb61
G
100
101config PUV3_SMW0919
102 bool "Security Mini-Workstation board (0919)"
103
104endchoice
105
106config PUV3_PM
107 def_bool y if !ARCH_FPGA
108
109endif
110
111source "arch/unicore32/mm/Kconfig"
112
83fc61a5 113comment "Floating point support"
790edb61
G
114
115config UNICORE_FPU_F64
116 def_bool y if !ARCH_FPGA
117
118endmenu
119
120menu "Bus support"
121
122config PCI
123 bool "PCI Support"
124 help
125 Find out whether you have a PCI motherboard. PCI is the name of a
126 bus system, i.e. the way the CPU talks to the other stuff inside
127 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
128 VESA. If you have PCI, say Y, otherwise N.
129
130source "drivers/pci/Kconfig"
131
132source "drivers/pcmcia/Kconfig"
133
134endmenu
135
136menu "Kernel Features"
137
790edb61
G
138source "kernel/Kconfig.preempt"
139
140source "kernel/Kconfig.hz"
141
790edb61
G
142config LEDS
143 def_bool y
76ec9d18 144 depends on GPIOLIB
790edb61
G
145
146config ALIGNMENT_TRAP
147 def_bool y
148 help
149 Unicore processors can not fetch/store information which is not
150 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
151 address divisible by 4. On 32-bit Unicore processors, these non-aligned
152 fetch/store instructions will be emulated in software if you say
153 here, which has a severe performance impact. This is necessary for
154 correct operation of some network protocols. With an IP-only
155 configuration it is safe to say N, otherwise say Y.
156
157endmenu
158
159menu "Boot options"
160
161config CMDLINE
162 string "Default kernel command string"
163 default ""
164
165config CMDLINE_FORCE
166 bool "Always use the default kernel command string"
167 depends on CMDLINE != ""
168 help
169 Always use the default kernel command string, even if the boot
170 loader passes other arguments to the kernel.
171 This is useful if you cannot or don't want to change the
172 command-line options your boot loader passes to the kernel.
173
174 If unsure, say N.
175
176endmenu
177
790edb61
G
178menu "Power management options"
179
180source "kernel/power/Kconfig"
181
790edb61 182source "drivers/cpufreq/Kconfig"
790edb61
G
183
184config ARCH_SUSPEND_POSSIBLE
185 def_bool y if !ARCH_FPGA
186
187config ARCH_HIBERNATION_POSSIBLE
188 def_bool y if !ARCH_FPGA
189
190endmenu
191
790edb61
G
192if ARCH_PUV3
193
194config PUV3_GPIO
195 bool
196 depends on !ARCH_FPGA
c2844646 197 select GPIO_SYSFS
790edb61
G
198 default y
199
fa7499ef
G
200if PUV3_NB0916
201
202menu "PKUnity NetBook-0916 Features"
203
204config I2C_BATTERY_BQ27200
205 tristate "I2C Battery BQ27200 Support"
8889023a 206 select I2C_PUV3
fa7499ef 207 select POWER_SUPPLY
081bab21 208 select BATTERY_BQ27XXX
fa7499ef
G
209
210config I2C_EEPROM_AT24
211 tristate "I2C EEPROMs AT24 support"
8889023a 212 select I2C_PUV3
fa7499ef
G
213 select EEPROM_AT24
214
215config LCD_BACKLIGHT
216 tristate "LCD Backlight support"
217 select BACKLIGHT_LCD_SUPPORT
218 select BACKLIGHT_PWM
219
220endmenu
221
222endif
223
790edb61 224endif