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