blob: c4fbb21e802b15349e7bfb09d06484b6163169cc [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
Al Viro38e99352012-10-13 17:35:21 -040019 select GENERIC_KERNEL_THREAD
20 select GENERIC_KERNEL_EXECVE
GuanXuetao790edb62011-02-26 18:24:56 +080021 help
22 UniCore-32 is 32-bit Instruction Set Architecture,
23 including a series of low-power-consumption RISC chip
24 designs licensed by PKUnity Ltd.
25 Please see web page at <http://www.pkunity.com/>.
26
GuanXuetao790edb62011-02-26 18:24:56 +080027config 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
Guan Xuetao446d1412012-04-12 09:18:46 +080069config ZONE_DMA
70 def_bool y
71
GuanXuetao790edb62011-02-26 18:24:56 +080072config NEED_DMA_MAP_STATE
73 def_bool y
74
75source "init/Kconfig"
76
77source "kernel/Kconfig.freezer"
78
79menu "System Type"
80
81config MMU
82 def_bool y
83
84config ARCH_FPGA
85 bool
86
87config ARCH_PUV3
88 def_bool y
89 select CPU_UCV2
90 select GENERIC_CLOCKEVENTS
91 select HAVE_CLK
92 select ARCH_REQUIRE_GPIOLIB
93 select ARCH_HAS_CPUFREQ
94
95# CONFIGs for ARCH_PUV3
96
97if ARCH_PUV3
98
99choice
100 prompt "Board Selection"
101 default PUV3_DB0913
102
103config PUV3_FPGA_DLX200
104 select ARCH_FPGA
105 bool "FPGA board"
106
107config PUV3_DB0913
108 bool "DEBUG board (0913)"
109
110config PUV3_NB0916
111 bool "NetBook board (0916)"
Thierry Reding79c11b62012-08-31 08:29:24 +0200112 select PWM
113 select PWM_PUV3
GuanXuetao790edb62011-02-26 18:24:56 +0800114
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
GuanXuetao790edb62011-02-26 18:24:56 +0800152source "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
Kees Cookc2844642012-10-23 13:01:43 -0700224 select GPIO_SYSFS
GuanXuetao790edb62011-02-26 18:24:56 +0800225 default y
226
GuanXuetaofa7499e2011-02-26 19:51:18 +0800227if PUV3_NB0916
228
229menu "PKUnity NetBook-0916 Features"
230
231config I2C_BATTERY_BQ27200
232 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100233 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800234 select POWER_SUPPLY
235 select BATTERY_BQ27x00
236
237config I2C_EEPROM_AT24
238 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100239 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800240 select EEPROM_AT24
241
242config LCD_BACKLIGHT
243 tristate "LCD Backlight support"
244 select BACKLIGHT_LCD_SUPPORT
245 select BACKLIGHT_PWM
246
247endmenu
248
249endif
250
GuanXuetao790edb62011-02-26 18:24:56 +0800251endif
252
253source "drivers/Kconfig"
254
255source "fs/Kconfig"
256
257source "arch/unicore32/Kconfig.debug"
258
259source "security/Kconfig"
260
261source "crypto/Kconfig"
262
263source "lib/Kconfig"