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