blob: 2943e3acdf0cba611bcd0fc222fbc59fb3f6602a [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
Stephen Rothwell4febd952013-03-07 15:48:16 +110012 select VIRT_TO_BUS
Mark Brown7563bbf2012-04-15 10:52:54 +010013 select ARCH_HAVE_CUSTOM_GPIO_H
GuanXuetao790edb62011-02-26 18:24:56 +080014 select GENERIC_FIND_FIRST_BIT
15 select GENERIC_IRQ_PROBE
Thomas Gleixner37daf322011-03-24 18:26:42 +010016 select GENERIC_IRQ_SHOW
GuanXuetao790edb62011-02-26 18:24:56 +080017 select ARCH_WANT_FRAME_POINTERS
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020018 select GENERIC_IOMAP
David Howells786d35d2012-09-28 14:31:03 +093019 select MODULES_USE_ELF_REL
GuanXuetao790edb62011-02-26 18:24:56 +080020 help
21 UniCore-32 is 32-bit Instruction Set Architecture,
22 including a series of low-power-consumption RISC chip
23 designs licensed by PKUnity Ltd.
24 Please see web page at <http://www.pkunity.com/>.
25
GuanXuetao790edb62011-02-26 18:24:56 +080026config GENERIC_GPIO
27 def_bool y
28
GuanXuetao790edb62011-02-26 18:24:56 +080029config GENERIC_CSUM
30 def_bool y
31
32config NO_IOPORT
33 bool
34
35config STACKTRACE_SUPPORT
36 def_bool y
37
38config HAVE_LATENCYTOP_SUPPORT
39 def_bool y
40
41config LOCKDEP_SUPPORT
42 def_bool y
43
44config RWSEM_GENERIC_SPINLOCK
45 def_bool y
46
47config RWSEM_XCHGADD_ALGORITHM
48 bool
49
50config ARCH_HAS_ILOG2_U32
51 bool
52
53config ARCH_HAS_ILOG2_U64
54 bool
55
56config ARCH_HAS_CPUFREQ
57 bool
58
59config GENERIC_HWEIGHT
60 def_bool y
61
62config GENERIC_CALIBRATE_DELAY
63 def_bool y
64
65config ARCH_MAY_HAVE_PC_FDC
66 bool
67
Guan Xuetao446d1412012-04-12 09:18:46 +080068config ZONE_DMA
69 def_bool y
70
GuanXuetao790edb62011-02-26 18:24:56 +080071config 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)"
Thierry Reding79c11b62012-08-31 08:29:24 +0200111 select PWM
112 select PWM_PUV3
GuanXuetao790edb62011-02-26 18:24:56 +0800113
114config PUV3_SMW0919
115 bool "Security Mini-Workstation board (0919)"
116
117endchoice
118
119config PUV3_PM
120 def_bool y if !ARCH_FPGA
121
122endif
123
124source "arch/unicore32/mm/Kconfig"
125
126comment "Floating poing support"
127
128config UNICORE_FPU_F64
129 def_bool y if !ARCH_FPGA
130
131endmenu
132
133menu "Bus support"
134
135config PCI
136 bool "PCI Support"
137 help
138 Find out whether you have a PCI motherboard. PCI is the name of a
139 bus system, i.e. the way the CPU talks to the other stuff inside
140 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
141 VESA. If you have PCI, say Y, otherwise N.
142
143source "drivers/pci/Kconfig"
144
145source "drivers/pcmcia/Kconfig"
146
147endmenu
148
149menu "Kernel Features"
150
GuanXuetao790edb62011-02-26 18:24:56 +0800151source "kernel/Kconfig.preempt"
152
153source "kernel/Kconfig.hz"
154
155source "mm/Kconfig"
156
157config LEDS
158 def_bool y
159 depends on GENERIC_GPIO
160
161config ALIGNMENT_TRAP
162 def_bool y
163 help
164 Unicore processors can not fetch/store information which is not
165 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
166 address divisible by 4. On 32-bit Unicore processors, these non-aligned
167 fetch/store instructions will be emulated in software if you say
168 here, which has a severe performance impact. This is necessary for
169 correct operation of some network protocols. With an IP-only
170 configuration it is safe to say N, otherwise say Y.
171
172endmenu
173
174menu "Boot options"
175
176config CMDLINE
177 string "Default kernel command string"
178 default ""
179
180config CMDLINE_FORCE
181 bool "Always use the default kernel command string"
182 depends on CMDLINE != ""
183 help
184 Always use the default kernel command string, even if the boot
185 loader passes other arguments to the kernel.
186 This is useful if you cannot or don't want to change the
187 command-line options your boot loader passes to the kernel.
188
189 If unsure, say N.
190
191endmenu
192
193menu "Userspace binary formats"
194
195source "fs/Kconfig.binfmt"
196
197endmenu
198
199menu "Power management options"
200
201source "kernel/power/Kconfig"
202
203if ARCH_HAS_CPUFREQ
204source "drivers/cpufreq/Kconfig"
205endif
206
207config ARCH_SUSPEND_POSSIBLE
208 def_bool y if !ARCH_FPGA
209
210config ARCH_HIBERNATION_POSSIBLE
211 def_bool y if !ARCH_FPGA
212
213endmenu
214
215source "net/Kconfig"
216
217if ARCH_PUV3
218
219config PUV3_GPIO
220 bool
221 depends on !ARCH_FPGA
222 select GENERIC_GPIO
Kees Cookc2844642012-10-23 13:01:43 -0700223 select GPIO_SYSFS
GuanXuetao790edb62011-02-26 18:24:56 +0800224 default y
225
GuanXuetaofa7499e2011-02-26 19:51:18 +0800226if PUV3_NB0916
227
228menu "PKUnity NetBook-0916 Features"
229
230config I2C_BATTERY_BQ27200
231 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100232 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800233 select POWER_SUPPLY
234 select BATTERY_BQ27x00
235
236config I2C_EEPROM_AT24
237 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100238 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800239 select EEPROM_AT24
240
241config LCD_BACKLIGHT
242 tristate "LCD Backlight support"
243 select BACKLIGHT_LCD_SUPPORT
244 select BACKLIGHT_PWM
245
246endmenu
247
248endif
249
GuanXuetao790edb62011-02-26 18:24:56 +0800250endif
251
252source "drivers/Kconfig"
253
254source "fs/Kconfig"
255
256source "arch/unicore32/Kconfig.debug"
257
258source "security/Kconfig"
259
260source "crypto/Kconfig"
261
262source "lib/Kconfig"