blob: 928237a7b9cada873486bcb0e9d0ff909e19d153 [file] [log] [blame]
GuanXuetao790edb62011-02-26 18:24:56 +08001config UNICORE32
2 def_bool y
Mark Saltere00ca512013-10-07 22:17:30 -04003 select ARCH_MIGHT_HAVE_PC_PARPORT
Mark Salterd444b032014-01-01 11:33:53 -08004 select ARCH_MIGHT_HAVE_PC_SERIO
GuanXuetao790edb62011-02-26 18:24:56 +08005 select HAVE_MEMBLOCK
6 select HAVE_GENERIC_DMA_COHERENT
GuanXuetao790edb62011-02-26 18:24:56 +08007 select HAVE_DMA_ATTRS
8 select HAVE_KERNEL_GZIP
9 select HAVE_KERNEL_BZIP2
Fengguang Wu82e54a62012-10-04 17:11:23 -070010 select GENERIC_ATOMIC64
GuanXuetao790edb62011-02-26 18:24:56 +080011 select HAVE_KERNEL_LZO
12 select HAVE_KERNEL_LZMA
Stephen Rothwell4febd952013-03-07 15:48:16 +110013 select VIRT_TO_BUS
Mark Brown7563bbf2012-04-15 10:52:54 +010014 select ARCH_HAVE_CUSTOM_GPIO_H
GuanXuetao790edb62011-02-26 18:24:56 +080015 select GENERIC_FIND_FIRST_BIT
16 select GENERIC_IRQ_PROBE
Thomas Gleixner37daf322011-03-24 18:26:42 +010017 select GENERIC_IRQ_SHOW
GuanXuetao790edb62011-02-26 18:24:56 +080018 select ARCH_WANT_FRAME_POINTERS
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020019 select GENERIC_IOMAP
David Howells786d35d2012-09-28 14:31:03 +093020 select MODULES_USE_ELF_REL
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_CSUM
28 def_bool y
29
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070030config NO_IOPORT_MAP
GuanXuetao790edb62011-02-26 18:24:56 +080031 bool
32
33config STACKTRACE_SUPPORT
34 def_bool y
35
36config HAVE_LATENCYTOP_SUPPORT
37 def_bool y
38
39config LOCKDEP_SUPPORT
40 def_bool y
41
42config RWSEM_GENERIC_SPINLOCK
43 def_bool y
44
45config RWSEM_XCHGADD_ALGORITHM
46 bool
47
48config ARCH_HAS_ILOG2_U32
49 bool
50
51config ARCH_HAS_ILOG2_U64
52 bool
53
GuanXuetao790edb62011-02-26 18:24:56 +080054config GENERIC_HWEIGHT
55 def_bool y
56
57config GENERIC_CALIBRATE_DELAY
58 def_bool y
59
60config ARCH_MAY_HAVE_PC_FDC
61 bool
62
Guan Xuetao446d1412012-04-12 09:18:46 +080063config ZONE_DMA
64 def_bool y
65
GuanXuetao790edb62011-02-26 18:24:56 +080066config NEED_DMA_MAP_STATE
67 def_bool y
68
69source "init/Kconfig"
70
71source "kernel/Kconfig.freezer"
72
73menu "System Type"
74
75config MMU
76 def_bool y
77
78config ARCH_FPGA
79 bool
80
81config ARCH_PUV3
82 def_bool y
83 select CPU_UCV2
84 select GENERIC_CLOCKEVENTS
85 select HAVE_CLK
86 select ARCH_REQUIRE_GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +080087
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
Alexandre Courbot76ec9d12013-03-28 04:34:56 -0700153 depends on GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +0800154
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
GuanXuetao790edb62011-02-26 18:24:56 +0800197source "drivers/cpufreq/Kconfig"
GuanXuetao790edb62011-02-26 18:24:56 +0800198
199config ARCH_SUSPEND_POSSIBLE
200 def_bool y if !ARCH_FPGA
201
202config ARCH_HIBERNATION_POSSIBLE
203 def_bool y if !ARCH_FPGA
204
205endmenu
206
207source "net/Kconfig"
208
209if ARCH_PUV3
210
211config PUV3_GPIO
212 bool
213 depends on !ARCH_FPGA
Kees Cookc2844642012-10-23 13:01:43 -0700214 select GPIO_SYSFS
GuanXuetao790edb62011-02-26 18:24:56 +0800215 default y
216
GuanXuetaofa7499e2011-02-26 19:51:18 +0800217if PUV3_NB0916
218
219menu "PKUnity NetBook-0916 Features"
220
221config I2C_BATTERY_BQ27200
222 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100223 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800224 select POWER_SUPPLY
225 select BATTERY_BQ27x00
226
227config I2C_EEPROM_AT24
228 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100229 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800230 select EEPROM_AT24
231
232config LCD_BACKLIGHT
233 tristate "LCD Backlight support"
234 select BACKLIGHT_LCD_SUPPORT
235 select BACKLIGHT_PWM
236
237endmenu
238
239endif
240
GuanXuetao790edb62011-02-26 18:24:56 +0800241endif
242
243source "drivers/Kconfig"
244
245source "fs/Kconfig"
246
247source "arch/unicore32/Kconfig.debug"
248
249source "security/Kconfig"
250
251source "crypto/Kconfig"
252
253source "lib/Kconfig"