blob: 7ff6d10c0be2a5413713d205b8862f2cc6786a26 [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
9 select HAVE_KERNEL_LZO
10 select HAVE_KERNEL_LZMA
Mark Brown7563bbf2012-04-15 10:52:54 +010011 select ARCH_HAVE_CUSTOM_GPIO_H
GuanXuetao790edb62011-02-26 18:24:56 +080012 select GENERIC_FIND_FIRST_BIT
13 select GENERIC_IRQ_PROBE
Thomas Gleixner37daf322011-03-24 18:26:42 +010014 select GENERIC_IRQ_SHOW
GuanXuetao790edb62011-02-26 18:24:56 +080015 select ARCH_WANT_FRAME_POINTERS
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020016 select GENERIC_IOMAP
GuanXuetao790edb62011-02-26 18:24:56 +080017 help
18 UniCore-32 is 32-bit Instruction Set Architecture,
19 including a series of low-power-consumption RISC chip
20 designs licensed by PKUnity Ltd.
21 Please see web page at <http://www.pkunity.com/>.
22
23config HAVE_PWM
24 bool
25
26config GENERIC_GPIO
27 def_bool y
28
29config GENERIC_CLOCKEVENTS
30 bool
31
32config GENERIC_CSUM
33 def_bool y
34
35config NO_IOPORT
36 bool
37
38config STACKTRACE_SUPPORT
39 def_bool y
40
41config HAVE_LATENCYTOP_SUPPORT
42 def_bool y
43
44config LOCKDEP_SUPPORT
45 def_bool y
46
47config RWSEM_GENERIC_SPINLOCK
48 def_bool y
49
50config RWSEM_XCHGADD_ALGORITHM
51 bool
52
53config ARCH_HAS_ILOG2_U32
54 bool
55
56config ARCH_HAS_ILOG2_U64
57 bool
58
59config ARCH_HAS_CPUFREQ
60 bool
61
62config GENERIC_HWEIGHT
63 def_bool y
64
65config GENERIC_CALIBRATE_DELAY
66 def_bool y
67
68config ARCH_MAY_HAVE_PC_FDC
69 bool
70
71config NEED_DMA_MAP_STATE
72 def_bool y
73
74source "init/Kconfig"
75
76source "kernel/Kconfig.freezer"
77
78menu "System Type"
79
80config MMU
81 def_bool y
82
83config ARCH_FPGA
84 bool
85
86config ARCH_PUV3
87 def_bool y
88 select CPU_UCV2
89 select GENERIC_CLOCKEVENTS
90 select HAVE_CLK
91 select ARCH_REQUIRE_GPIOLIB
92 select ARCH_HAS_CPUFREQ
93
94# CONFIGs for ARCH_PUV3
95
96if ARCH_PUV3
97
98choice
99 prompt "Board Selection"
100 default PUV3_DB0913
101
102config PUV3_FPGA_DLX200
103 select ARCH_FPGA
104 bool "FPGA board"
105
106config PUV3_DB0913
107 bool "DEBUG board (0913)"
108
109config PUV3_NB0916
110 bool "NetBook board (0916)"
111 select HAVE_PWM
112
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
150source "kernel/time/Kconfig"
151
152source "kernel/Kconfig.preempt"
153
154source "kernel/Kconfig.hz"
155
156source "mm/Kconfig"
157
158config LEDS
159 def_bool y
160 depends on GENERIC_GPIO
161
162config ALIGNMENT_TRAP
163 def_bool y
164 help
165 Unicore processors can not fetch/store information which is not
166 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
167 address divisible by 4. On 32-bit Unicore processors, these non-aligned
168 fetch/store instructions will be emulated in software if you say
169 here, which has a severe performance impact. This is necessary for
170 correct operation of some network protocols. With an IP-only
171 configuration it is safe to say N, otherwise say Y.
172
173endmenu
174
175menu "Boot options"
176
177config CMDLINE
178 string "Default kernel command string"
179 default ""
180
181config CMDLINE_FORCE
182 bool "Always use the default kernel command string"
183 depends on CMDLINE != ""
184 help
185 Always use the default kernel command string, even if the boot
186 loader passes other arguments to the kernel.
187 This is useful if you cannot or don't want to change the
188 command-line options your boot loader passes to the kernel.
189
190 If unsure, say N.
191
192endmenu
193
194menu "Userspace binary formats"
195
196source "fs/Kconfig.binfmt"
197
198endmenu
199
200menu "Power management options"
201
202source "kernel/power/Kconfig"
203
204if ARCH_HAS_CPUFREQ
205source "drivers/cpufreq/Kconfig"
206endif
207
208config ARCH_SUSPEND_POSSIBLE
209 def_bool y if !ARCH_FPGA
210
211config ARCH_HIBERNATION_POSSIBLE
212 def_bool y if !ARCH_FPGA
213
214endmenu
215
216source "net/Kconfig"
217
218if ARCH_PUV3
219
220config PUV3_GPIO
221 bool
222 depends on !ARCH_FPGA
223 select GENERIC_GPIO
224 select GPIO_SYSFS if EXPERIMENTAL
225 default y
226
227config PUV3_PWM
228 tristate
229 default BACKLIGHT_PWM
230 help
231 Enable support for NB0916 PWM controllers
232
GuanXuetaofa7499e2011-02-26 19:51:18 +0800233if PUV3_NB0916
234
235menu "PKUnity NetBook-0916 Features"
236
237config I2C_BATTERY_BQ27200
238 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100239 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800240 select POWER_SUPPLY
241 select BATTERY_BQ27x00
242
243config I2C_EEPROM_AT24
244 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100245 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800246 select MISC_DEVICES
247 select EEPROM_AT24
248
249config LCD_BACKLIGHT
250 tristate "LCD Backlight support"
251 select BACKLIGHT_LCD_SUPPORT
252 select BACKLIGHT_PWM
253
254endmenu
255
256endif
257
GuanXuetao790edb62011-02-26 18:24:56 +0800258endif
259
260source "drivers/Kconfig"
261
262source "fs/Kconfig"
263
264source "arch/unicore32/Kconfig.debug"
265
266source "security/Kconfig"
267
268source "crypto/Kconfig"
269
270source "lib/Kconfig"