blob: 0769066929c636ecbaa78a9b9a0455aaa7f3abef [file] [log] [blame]
GuanXuetao790edb62011-02-26 18:24:56 +08001config UNICORE32
2 def_bool y
Dan Williams21266be2015-11-19 18:19:29 -08003 select ARCH_HAS_DEVMEM_IS_ALLOWED
Mark Saltere00ca512013-10-07 22:17:30 -04004 select ARCH_MIGHT_HAVE_PC_PARPORT
Mark Salterd444b032014-01-01 11:33:53 -08005 select ARCH_MIGHT_HAVE_PC_SERIO
GuanXuetao790edb62011-02-26 18:24:56 +08006 select HAVE_MEMBLOCK
7 select HAVE_GENERIC_DMA_COHERENT
GuanXuetao790edb62011-02-26 18:24:56 +08008 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
GuanXuetao790edb62011-02-26 18:24:56 +080036config LOCKDEP_SUPPORT
37 def_bool y
38
39config RWSEM_GENERIC_SPINLOCK
40 def_bool y
41
42config RWSEM_XCHGADD_ALGORITHM
43 bool
44
45config ARCH_HAS_ILOG2_U32
46 bool
47
48config ARCH_HAS_ILOG2_U64
49 bool
50
GuanXuetao790edb62011-02-26 18:24:56 +080051config GENERIC_HWEIGHT
52 def_bool y
53
54config GENERIC_CALIBRATE_DELAY
55 def_bool y
56
57config ARCH_MAY_HAVE_PC_FDC
58 bool
59
Guan Xuetao446d1412012-04-12 09:18:46 +080060config ZONE_DMA
61 def_bool y
62
GuanXuetao790edb62011-02-26 18:24:56 +080063config NEED_DMA_MAP_STATE
64 def_bool y
65
66source "init/Kconfig"
67
68source "kernel/Kconfig.freezer"
69
70menu "System Type"
71
72config MMU
73 def_bool y
74
75config ARCH_FPGA
76 bool
77
78config ARCH_PUV3
79 def_bool y
80 select CPU_UCV2
81 select GENERIC_CLOCKEVENTS
82 select HAVE_CLK
Linus Walleijc40d54a2016-04-19 13:27:28 +020083 select GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +080084
85# CONFIGs for ARCH_PUV3
86
87if ARCH_PUV3
88
89choice
90 prompt "Board Selection"
91 default PUV3_DB0913
92
93config PUV3_FPGA_DLX200
94 select ARCH_FPGA
95 bool "FPGA board"
96
97config PUV3_DB0913
98 bool "DEBUG board (0913)"
99
100config PUV3_NB0916
101 bool "NetBook board (0916)"
Thierry Reding79c11b62012-08-31 08:29:24 +0200102 select PWM
103 select PWM_PUV3
GuanXuetao790edb62011-02-26 18:24:56 +0800104
105config PUV3_SMW0919
106 bool "Security Mini-Workstation board (0919)"
107
108endchoice
109
110config PUV3_PM
111 def_bool y if !ARCH_FPGA
112
113endif
114
115source "arch/unicore32/mm/Kconfig"
116
117comment "Floating poing support"
118
119config UNICORE_FPU_F64
120 def_bool y if !ARCH_FPGA
121
122endmenu
123
124menu "Bus support"
125
126config PCI
127 bool "PCI Support"
128 help
129 Find out whether you have a PCI motherboard. PCI is the name of a
130 bus system, i.e. the way the CPU talks to the other stuff inside
131 your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
132 VESA. If you have PCI, say Y, otherwise N.
133
134source "drivers/pci/Kconfig"
135
136source "drivers/pcmcia/Kconfig"
137
138endmenu
139
140menu "Kernel Features"
141
GuanXuetao790edb62011-02-26 18:24:56 +0800142source "kernel/Kconfig.preempt"
143
144source "kernel/Kconfig.hz"
145
146source "mm/Kconfig"
147
148config LEDS
149 def_bool y
Alexandre Courbot76ec9d12013-03-28 04:34:56 -0700150 depends on GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +0800151
152config ALIGNMENT_TRAP
153 def_bool y
154 help
155 Unicore processors can not fetch/store information which is not
156 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
157 address divisible by 4. On 32-bit Unicore processors, these non-aligned
158 fetch/store instructions will be emulated in software if you say
159 here, which has a severe performance impact. This is necessary for
160 correct operation of some network protocols. With an IP-only
161 configuration it is safe to say N, otherwise say Y.
162
163endmenu
164
165menu "Boot options"
166
167config CMDLINE
168 string "Default kernel command string"
169 default ""
170
171config CMDLINE_FORCE
172 bool "Always use the default kernel command string"
173 depends on CMDLINE != ""
174 help
175 Always use the default kernel command string, even if the boot
176 loader passes other arguments to the kernel.
177 This is useful if you cannot or don't want to change the
178 command-line options your boot loader passes to the kernel.
179
180 If unsure, say N.
181
182endmenu
183
184menu "Userspace binary formats"
185
186source "fs/Kconfig.binfmt"
187
188endmenu
189
190menu "Power management options"
191
192source "kernel/power/Kconfig"
193
GuanXuetao790edb62011-02-26 18:24:56 +0800194source "drivers/cpufreq/Kconfig"
GuanXuetao790edb62011-02-26 18:24:56 +0800195
196config ARCH_SUSPEND_POSSIBLE
197 def_bool y if !ARCH_FPGA
198
199config ARCH_HIBERNATION_POSSIBLE
200 def_bool y if !ARCH_FPGA
201
202endmenu
203
204source "net/Kconfig"
205
206if ARCH_PUV3
207
208config PUV3_GPIO
209 bool
210 depends on !ARCH_FPGA
Kees Cookc2844642012-10-23 13:01:43 -0700211 select GPIO_SYSFS
GuanXuetao790edb62011-02-26 18:24:56 +0800212 default y
213
GuanXuetaofa7499e2011-02-26 19:51:18 +0800214if PUV3_NB0916
215
216menu "PKUnity NetBook-0916 Features"
217
218config I2C_BATTERY_BQ27200
219 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100220 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800221 select POWER_SUPPLY
Andrew F. Davis081bab22015-09-22 14:35:06 -0500222 select BATTERY_BQ27XXX
GuanXuetaofa7499e2011-02-26 19:51:18 +0800223
224config I2C_EEPROM_AT24
225 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100226 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800227 select EEPROM_AT24
228
229config LCD_BACKLIGHT
230 tristate "LCD Backlight support"
231 select BACKLIGHT_LCD_SUPPORT
232 select BACKLIGHT_PWM
233
234endmenu
235
236endif
237
GuanXuetao790edb62011-02-26 18:24:56 +0800238endif
239
240source "drivers/Kconfig"
241
242source "fs/Kconfig"
243
244source "arch/unicore32/Kconfig.debug"
245
246source "security/Kconfig"
247
248source "crypto/Kconfig"
249
250source "lib/Kconfig"