OSDN Git Service

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