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