blob: 5b95ba4e0c704cf46674a5abc145955abe4d32e2 [file] [log] [blame]
GuanXuetao790edb62011-02-26 18:24:56 +08001config UNICORE32
2 def_bool y
3 select HAVE_MEMBLOCK
4 select HAVE_GENERIC_DMA_COHERENT
5 select HAVE_GENERIC_HARDIRQS
6 select HAVE_DMA_ATTRS
7 select HAVE_KERNEL_GZIP
8 select HAVE_KERNEL_BZIP2
Fengguang Wu82e54a62012-10-04 17:11:23 -07009 select GENERIC_ATOMIC64
GuanXuetao790edb62011-02-26 18:24:56 +080010 select HAVE_KERNEL_LZO
11 select HAVE_KERNEL_LZMA
Mark Brown7563bbf2012-04-15 10:52:54 +010012 select ARCH_HAVE_CUSTOM_GPIO_H
GuanXuetao790edb62011-02-26 18:24:56 +080013 select GENERIC_FIND_FIRST_BIT
14 select GENERIC_IRQ_PROBE
Thomas Gleixner37daf322011-03-24 18:26:42 +010015 select GENERIC_IRQ_SHOW
GuanXuetao790edb62011-02-26 18:24:56 +080016 select ARCH_WANT_FRAME_POINTERS
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020017 select GENERIC_IOMAP
David Howells786d35d2012-09-28 14:31:03 +093018 select MODULES_USE_ELF_REL
GuanXuetao790edb62011-02-26 18:24:56 +080019 help
20 UniCore-32 is 32-bit Instruction Set Architecture,
21 including a series of low-power-consumption RISC chip
22 designs licensed by PKUnity Ltd.
23 Please see web page at <http://www.pkunity.com/>.
24
GuanXuetao790edb62011-02-26 18:24:56 +080025config GENERIC_GPIO
26 def_bool y
27
GuanXuetao790edb62011-02-26 18:24:56 +080028config GENERIC_CSUM
29 def_bool y
30
31config NO_IOPORT
32 bool
33
34config STACKTRACE_SUPPORT
35 def_bool y
36
37config HAVE_LATENCYTOP_SUPPORT
38 def_bool y
39
40config LOCKDEP_SUPPORT
41 def_bool y
42
43config RWSEM_GENERIC_SPINLOCK
44 def_bool y
45
46config RWSEM_XCHGADD_ALGORITHM
47 bool
48
49config ARCH_HAS_ILOG2_U32
50 bool
51
52config ARCH_HAS_ILOG2_U64
53 bool
54
55config ARCH_HAS_CPUFREQ
56 bool
57
58config GENERIC_HWEIGHT
59 def_bool y
60
61config GENERIC_CALIBRATE_DELAY
62 def_bool y
63
64config ARCH_MAY_HAVE_PC_FDC
65 bool
66
Guan Xuetao446d1412012-04-12 09:18:46 +080067config ZONE_DMA
68 def_bool y
69
GuanXuetao790edb62011-02-26 18:24:56 +080070config NEED_DMA_MAP_STATE
71 def_bool y
72
73source "init/Kconfig"
74
75source "kernel/Kconfig.freezer"
76
77menu "System Type"
78
79config MMU
80 def_bool y
81
82config ARCH_FPGA
83 bool
84
85config ARCH_PUV3
86 def_bool y
87 select CPU_UCV2
88 select GENERIC_CLOCKEVENTS
89 select HAVE_CLK
90 select ARCH_REQUIRE_GPIOLIB
91 select ARCH_HAS_CPUFREQ
92
93# CONFIGs for ARCH_PUV3
94
95if ARCH_PUV3
96
97choice
98 prompt "Board Selection"
99 default PUV3_DB0913
100
101config PUV3_FPGA_DLX200
102 select ARCH_FPGA
103 bool "FPGA board"
104
105config PUV3_DB0913
106 bool "DEBUG board (0913)"
107
108config PUV3_NB0916
109 bool "NetBook board (0916)"
Thierry Reding79c11b62012-08-31 08:29:24 +0200110 select PWM
111 select PWM_PUV3
GuanXuetao790edb62011-02-26 18:24:56 +0800112
113config PUV3_SMW0919
114 bool "Security Mini-Workstation board (0919)"
115
116endchoice
117
118config PUV3_PM
119 def_bool y if !ARCH_FPGA
120
121endif
122
123source "arch/unicore32/mm/Kconfig"
124
125comment "Floating poing support"
126
127config UNICORE_FPU_F64
128 def_bool y if !ARCH_FPGA
129
130endmenu
131
132menu "Bus support"
133
134config PCI
135 bool "PCI Support"
136 help
137 Find out whether you have a PCI motherboard. PCI is the name of a
138 bus system, i.e. the way the CPU talks to the other stuff inside
139 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
140 VESA. If you have PCI, say Y, otherwise N.
141
142source "drivers/pci/Kconfig"
143
144source "drivers/pcmcia/Kconfig"
145
146endmenu
147
148menu "Kernel Features"
149
GuanXuetao790edb62011-02-26 18:24:56 +0800150source "kernel/Kconfig.preempt"
151
152source "kernel/Kconfig.hz"
153
154source "mm/Kconfig"
155
156config LEDS
157 def_bool y
158 depends on GENERIC_GPIO
159
160config ALIGNMENT_TRAP
161 def_bool y
162 help
163 Unicore processors can not fetch/store information which is not
164 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
165 address divisible by 4. On 32-bit Unicore processors, these non-aligned
166 fetch/store instructions will be emulated in software if you say
167 here, which has a severe performance impact. This is necessary for
168 correct operation of some network protocols. With an IP-only
169 configuration it is safe to say N, otherwise say Y.
170
171endmenu
172
173menu "Boot options"
174
175config CMDLINE
176 string "Default kernel command string"
177 default ""
178
179config CMDLINE_FORCE
180 bool "Always use the default kernel command string"
181 depends on CMDLINE != ""
182 help
183 Always use the default kernel command string, even if the boot
184 loader passes other arguments to the kernel.
185 This is useful if you cannot or don't want to change the
186 command-line options your boot loader passes to the kernel.
187
188 If unsure, say N.
189
190endmenu
191
192menu "Userspace binary formats"
193
194source "fs/Kconfig.binfmt"
195
196endmenu
197
198menu "Power management options"
199
200source "kernel/power/Kconfig"
201
202if ARCH_HAS_CPUFREQ
203source "drivers/cpufreq/Kconfig"
204endif
205
206config ARCH_SUSPEND_POSSIBLE
207 def_bool y if !ARCH_FPGA
208
209config ARCH_HIBERNATION_POSSIBLE
210 def_bool y if !ARCH_FPGA
211
212endmenu
213
214source "net/Kconfig"
215
216if ARCH_PUV3
217
218config PUV3_GPIO
219 bool
220 depends on !ARCH_FPGA
221 select GENERIC_GPIO
222 select GPIO_SYSFS if EXPERIMENTAL
223 default y
224
GuanXuetaofa7499e2011-02-26 19:51:18 +0800225if PUV3_NB0916
226
227menu "PKUnity NetBook-0916 Features"
228
229config I2C_BATTERY_BQ27200
230 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100231 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800232 select POWER_SUPPLY
233 select BATTERY_BQ27x00
234
235config I2C_EEPROM_AT24
236 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100237 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800238 select EEPROM_AT24
239
240config LCD_BACKLIGHT
241 tristate "LCD Backlight support"
242 select BACKLIGHT_LCD_SUPPORT
243 select BACKLIGHT_PWM
244
245endmenu
246
247endif
248
GuanXuetao790edb62011-02-26 18:24:56 +0800249endif
250
251source "drivers/Kconfig"
252
253source "fs/Kconfig"
254
255source "arch/unicore32/Kconfig.debug"
256
257source "security/Kconfig"
258
259source "crypto/Kconfig"
260
261source "lib/Kconfig"