Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[sfrench/cifs-2.6.git] / arch / unicore32 / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 config UNICORE32
3         def_bool y
4         select ARCH_HAS_DEVMEM_IS_ALLOWED
5         select ARCH_MIGHT_HAVE_PC_PARPORT
6         select ARCH_MIGHT_HAVE_PC_SERIO
7         select DMA_DIRECT_OPS
8         select HAVE_GENERIC_DMA_COHERENT
9         select HAVE_KERNEL_GZIP
10         select HAVE_KERNEL_BZIP2
11         select GENERIC_ATOMIC64
12         select HAVE_KERNEL_LZO
13         select HAVE_KERNEL_LZMA
14         select VIRT_TO_BUS
15         select ARCH_HAVE_CUSTOM_GPIO_H
16         select GENERIC_FIND_FIRST_BIT
17         select GENERIC_IRQ_PROBE
18         select GENERIC_IRQ_SHOW
19         select ARCH_WANT_FRAME_POINTERS
20         select GENERIC_IOMAP
21         select MODULES_USE_ELF_REL
22         select NEED_DMA_MAP_STATE
23         help
24           UniCore-32 is 32-bit Instruction Set Architecture,
25           including a series of low-power-consumption RISC chip
26           designs licensed by PKUnity Ltd.
27           Please see web page at <http://www.pkunity.com/>.
28
29 config GENERIC_CSUM
30         def_bool y
31
32 config NO_IOPORT_MAP
33         bool
34
35 config STACKTRACE_SUPPORT
36         def_bool y
37
38 config LOCKDEP_SUPPORT
39         def_bool y
40
41 config RWSEM_GENERIC_SPINLOCK
42         def_bool y
43
44 config RWSEM_XCHGADD_ALGORITHM
45         bool
46
47 config ARCH_HAS_ILOG2_U32
48         bool
49
50 config ARCH_HAS_ILOG2_U64
51         bool
52
53 config GENERIC_HWEIGHT
54         def_bool y
55
56 config GENERIC_CALIBRATE_DELAY
57         def_bool y
58
59 config ARCH_MAY_HAVE_PC_FDC
60         bool
61
62 config ZONE_DMA
63         def_bool y
64
65 menu "System Type"
66
67 config MMU
68         def_bool y
69
70 config ARCH_FPGA
71         bool
72
73 config ARCH_PUV3
74         def_bool y
75         select CPU_UCV2
76         select GENERIC_CLOCKEVENTS
77         select HAVE_CLK
78         select GPIOLIB
79
80 # CONFIGs for ARCH_PUV3
81
82 if ARCH_PUV3
83
84 choice
85         prompt "Board Selection"
86         default PUV3_DB0913
87
88 config PUV3_FPGA_DLX200
89         select ARCH_FPGA
90         bool "FPGA board"
91
92 config PUV3_DB0913
93         bool "DEBUG board (0913)"
94
95 config PUV3_NB0916
96         bool "NetBook board (0916)"
97         select PWM
98         select PWM_PUV3
99
100 config PUV3_SMW0919
101         bool "Security Mini-Workstation board (0919)"
102
103 endchoice
104
105 config PUV3_PM
106         def_bool y if !ARCH_FPGA
107
108 endif
109
110 source "arch/unicore32/mm/Kconfig"
111
112 comment "Floating point support"
113
114 config UNICORE_FPU_F64
115         def_bool y if !ARCH_FPGA
116
117 endmenu
118
119 menu "Bus support"
120
121 config PCI
122         bool "PCI Support"
123         help
124           Find out whether you have a PCI motherboard. PCI is the name of a
125           bus system, i.e. the way the CPU talks to the other stuff inside
126           your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
127           VESA. If you have PCI, say Y, otherwise N.
128
129 source "drivers/pci/Kconfig"
130
131 source "drivers/pcmcia/Kconfig"
132
133 endmenu
134
135 menu "Kernel Features"
136
137 source "kernel/Kconfig.hz"
138
139 config LEDS
140         def_bool y
141         depends on GPIOLIB
142
143 config ALIGNMENT_TRAP
144         def_bool y
145         help
146           Unicore processors can not fetch/store information which is not
147           naturally aligned on the bus, i.e., a 4 byte fetch must start at an
148           address divisible by 4. On 32-bit Unicore processors, these non-aligned
149           fetch/store instructions will be emulated in software if you say
150           here, which has a severe performance impact. This is necessary for
151           correct operation of some network protocols. With an IP-only
152           configuration it is safe to say N, otherwise say Y.
153
154 endmenu
155
156 menu "Boot options"
157
158 config CMDLINE
159         string "Default kernel command string"
160         default ""
161
162 config CMDLINE_FORCE
163         bool "Always use the default kernel command string"
164         depends on CMDLINE != ""
165         help
166           Always use the default kernel command string, even if the boot
167           loader passes other arguments to the kernel.
168           This is useful if you cannot or don't want to change the
169           command-line options your boot loader passes to the kernel.
170
171           If unsure, say N.
172
173 endmenu
174
175 menu "Power management options"
176
177 source "kernel/power/Kconfig"
178
179 source "drivers/cpufreq/Kconfig"
180
181 config ARCH_SUSPEND_POSSIBLE
182         def_bool y if !ARCH_FPGA
183
184 config ARCH_HIBERNATION_POSSIBLE
185         def_bool y if !ARCH_FPGA
186
187 endmenu
188
189 if ARCH_PUV3
190
191 config PUV3_GPIO
192         bool
193         depends on !ARCH_FPGA
194         select GPIO_SYSFS
195         default y
196
197 if PUV3_NB0916
198
199 menu "PKUnity NetBook-0916 Features"
200
201 config I2C_BATTERY_BQ27200
202         tristate "I2C Battery BQ27200 Support"
203         select I2C_PUV3
204         select POWER_SUPPLY
205         select BATTERY_BQ27XXX
206
207 config I2C_EEPROM_AT24
208         tristate "I2C EEPROMs AT24 support"
209         select I2C_PUV3
210         select EEPROM_AT24
211
212 config LCD_BACKLIGHT
213         tristate "LCD Backlight support"
214         select BACKLIGHT_LCD_SUPPORT
215         select BACKLIGHT_PWM
216
217 endmenu
218
219 endif
220
221 endif