1config 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
11	select GENERIC_FIND_FIRST_BIT
12	select GENERIC_IRQ_PROBE
13	select GENERIC_IRQ_SHOW
14	select ARCH_WANT_FRAME_POINTERS
15	select GENERIC_IOMAP
16	help
17	  UniCore-32 is 32-bit Instruction Set Architecture,
18	  including a series of low-power-consumption RISC chip
19	  designs licensed by PKUnity Ltd.
20	  Please see web page at <http://www.pkunity.com/>.
21
22config HAVE_PWM
23	bool
24
25config GENERIC_GPIO
26	def_bool y
27
28config GENERIC_CLOCKEVENTS
29	bool
30
31config GENERIC_CSUM
32	def_bool y
33
34config NO_IOPORT
35	bool
36
37config STACKTRACE_SUPPORT
38	def_bool y
39
40config HAVE_LATENCYTOP_SUPPORT
41	def_bool y
42
43config LOCKDEP_SUPPORT
44	def_bool y
45
46config RWSEM_GENERIC_SPINLOCK
47	def_bool y
48
49config RWSEM_XCHGADD_ALGORITHM
50	bool
51
52config ARCH_HAS_ILOG2_U32
53	bool
54
55config ARCH_HAS_ILOG2_U64
56	bool
57
58config ARCH_HAS_CPUFREQ
59	bool
60
61config GENERIC_HWEIGHT
62	def_bool y
63
64config GENERIC_CALIBRATE_DELAY
65	def_bool y
66
67config ARCH_MAY_HAVE_PC_FDC
68	bool
69
70config NEED_DMA_MAP_STATE
71       def_bool y
72
73source "init/Kconfig"
74
75source "kernel/Kconfig.freezer"
76
77menu "System Type"
78
79config MMU
80	def_bool y
81
82config ARCH_FPGA
83	bool
84
85config ARCH_PUV3
86	def_bool y
87	select CPU_UCV2
88	select GENERIC_CLOCKEVENTS
89	select HAVE_CLK
90	select ARCH_REQUIRE_GPIOLIB
91	select ARCH_HAS_CPUFREQ
92
93# CONFIGs for ARCH_PUV3
94
95if ARCH_PUV3
96
97choice
98	prompt "Board Selection"
99	default PUV3_DB0913
100
101config PUV3_FPGA_DLX200
102	select ARCH_FPGA
103	bool "FPGA board"
104
105config PUV3_DB0913
106	bool "DEBUG board (0913)"
107
108config PUV3_NB0916
109	bool "NetBook board (0916)"
110	select HAVE_PWM
111
112config PUV3_SMW0919
113	bool "Security Mini-Workstation board (0919)"
114
115endchoice
116
117config PUV3_PM
118	def_bool y if !ARCH_FPGA
119
120endif
121
122source "arch/unicore32/mm/Kconfig"
123
124comment "Floating poing support"
125
126config UNICORE_FPU_F64
127	def_bool y if !ARCH_FPGA
128
129endmenu
130
131menu "Bus support"
132
133config PCI
134	bool "PCI Support"
135	help
136	  Find out whether you have a PCI motherboard. PCI is the name of a
137	  bus system, i.e. the way the CPU talks to the other stuff inside
138	  your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
139	  VESA. If you have PCI, say Y, otherwise N.
140
141source "drivers/pci/Kconfig"
142
143source "drivers/pcmcia/Kconfig"
144
145endmenu
146
147menu "Kernel Features"
148
149source "kernel/time/Kconfig"
150
151source "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
223	select GPIO_SYSFS if EXPERIMENTAL
224	default y
225
226config PUV3_PWM
227	tristate
228	default BACKLIGHT_PWM
229	help
230	  Enable support for NB0916 PWM controllers
231
232if PUV3_NB0916
233
234menu "PKUnity NetBook-0916 Features"
235
236config I2C_BATTERY_BQ27200
237	tristate "I2C Battery BQ27200 Support"
238	select I2C_PUV3
239	select POWER_SUPPLY
240	select BATTERY_BQ27x00
241
242config I2C_EEPROM_AT24
243	tristate "I2C EEPROMs AT24 support"
244	select I2C_PUV3
245	select MISC_DEVICES
246	select EEPROM_AT24
247
248config LCD_BACKLIGHT
249	tristate "LCD Backlight support"
250	select BACKLIGHT_LCD_SUPPORT
251	select BACKLIGHT_PWM
252
253endmenu
254
255endif
256
257endif
258
259source "drivers/Kconfig"
260
261source "fs/Kconfig"
262
263source "arch/unicore32/Kconfig.debug"
264
265source "security/Kconfig"
266
267source "crypto/Kconfig"
268
269source "lib/Kconfig"
270