locking/lockdep: Remove unnecessary unlikely()
[linux-2.6-microblaze.git] / arch / unicore32 / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 config UNICORE32
3         def_bool y
4         select ARCH_32BIT_OFF_T
5         select ARCH_HAS_DEVMEM_IS_ALLOWED
6         select ARCH_MIGHT_HAVE_PC_PARPORT
7         select ARCH_MIGHT_HAVE_PC_SERIO
8         select HAVE_KERNEL_GZIP
9         select HAVE_KERNEL_BZIP2
10         select GENERIC_ATOMIC64
11         select HAVE_KERNEL_LZO
12         select HAVE_KERNEL_LZMA
13         select HAVE_PCI
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 ARCH_HAS_ILOG2_U32
42         bool
43
44 config ARCH_HAS_ILOG2_U64
45         bool
46
47 config GENERIC_HWEIGHT
48         def_bool y
49
50 config GENERIC_CALIBRATE_DELAY
51         def_bool y
52
53 config ARCH_MAY_HAVE_PC_FDC
54         bool
55
56 config ZONE_DMA
57         def_bool y
58
59 menu "System Type"
60
61 config MMU
62         def_bool y
63
64 config ARCH_FPGA
65         bool
66
67 config ARCH_PUV3
68         def_bool y
69         select CPU_UCV2
70         select GENERIC_CLOCKEVENTS
71         select HAVE_CLK
72         select GPIOLIB
73
74 # CONFIGs for ARCH_PUV3
75
76 if ARCH_PUV3
77
78 choice
79         prompt "Board Selection"
80         default PUV3_DB0913
81
82 config PUV3_FPGA_DLX200
83         select ARCH_FPGA
84         bool "FPGA board"
85
86 config PUV3_DB0913
87         bool "DEBUG board (0913)"
88
89 config PUV3_NB0916
90         bool "NetBook board (0916)"
91         select PWM
92         select PWM_PUV3
93
94 config PUV3_SMW0919
95         bool "Security Mini-Workstation board (0919)"
96
97 endchoice
98
99 config PUV3_PM
100         def_bool y if !ARCH_FPGA
101
102 endif
103
104 source "arch/unicore32/mm/Kconfig"
105
106 comment "Floating point support"
107
108 config UNICORE_FPU_F64
109         def_bool y if !ARCH_FPGA
110
111 endmenu
112
113 menu "Kernel Features"
114
115 source "kernel/Kconfig.hz"
116
117 config LEDS
118         def_bool y
119         depends on GPIOLIB
120
121 config ALIGNMENT_TRAP
122         def_bool y
123         help
124           Unicore processors can not fetch/store information which is not
125           naturally aligned on the bus, i.e., a 4 byte fetch must start at an
126           address divisible by 4. On 32-bit Unicore processors, these non-aligned
127           fetch/store instructions will be emulated in software if you say
128           here, which has a severe performance impact. This is necessary for
129           correct operation of some network protocols. With an IP-only
130           configuration it is safe to say N, otherwise say Y.
131
132 endmenu
133
134 menu "Boot options"
135
136 config CMDLINE
137         string "Default kernel command string"
138         default ""
139
140 config CMDLINE_FORCE
141         bool "Always use the default kernel command string"
142         depends on CMDLINE != ""
143         help
144           Always use the default kernel command string, even if the boot
145           loader passes other arguments to the kernel.
146           This is useful if you cannot or don't want to change the
147           command-line options your boot loader passes to the kernel.
148
149           If unsure, say N.
150
151 endmenu
152
153 menu "Power management options"
154
155 source "kernel/power/Kconfig"
156
157 source "drivers/cpufreq/Kconfig"
158
159 config ARCH_SUSPEND_POSSIBLE
160         def_bool y if !ARCH_FPGA
161
162 config ARCH_HIBERNATION_POSSIBLE
163         def_bool y if !ARCH_FPGA
164
165 endmenu
166
167 if ARCH_PUV3
168
169 config PUV3_GPIO
170         bool
171         depends on !ARCH_FPGA
172         select GPIO_SYSFS
173         default y
174
175 if PUV3_NB0916
176
177 menu "PKUnity NetBook-0916 Features"
178
179 config I2C_BATTERY_BQ27200
180         tristate "I2C Battery BQ27200 Support"
181         select I2C_PUV3
182         select POWER_SUPPLY
183         select BATTERY_BQ27XXX
184
185 config I2C_EEPROM_AT24
186         tristate "I2C EEPROMs AT24 support"
187         select I2C_PUV3
188         select EEPROM_AT24
189
190 config LCD_BACKLIGHT
191         tristate "LCD Backlight support"
192         select BACKLIGHT_LCD_SUPPORT
193         select BACKLIGHT_PWM
194
195 endmenu
196
197 endif
198
199 endif