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