blob: 41fe944005f818acf563b6496151af48498b71ae [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
GuanXuetao790edb62011-02-26 18:24:56 +08002config UNICORE32
3 def_bool y
Yury Norov942fa982018-05-16 11:18:49 +03004 select ARCH_32BIT_OFF_T
Dan Williams21266be2015-11-19 18:19:29 -08005 select ARCH_HAS_DEVMEM_IS_ALLOWED
Christoph Hellwigd8ae8a32019-05-13 17:18:30 -07006 select ARCH_HAS_KEEPINITRD
Mark Saltere00ca512013-10-07 22:17:30 -04007 select ARCH_MIGHT_HAVE_PC_PARPORT
Mark Salterd444b032014-01-01 11:33:53 -08008 select ARCH_MIGHT_HAVE_PC_SERIO
GuanXuetao790edb62011-02-26 18:24:56 +08009 select HAVE_KERNEL_GZIP
10 select HAVE_KERNEL_BZIP2
Fengguang Wu82e54a62012-10-04 17:11:23 -070011 select GENERIC_ATOMIC64
GuanXuetao790edb62011-02-26 18:24:56 +080012 select HAVE_KERNEL_LZO
13 select HAVE_KERNEL_LZMA
Christoph Hellwigeb01d422018-11-15 20:05:32 +010014 select HAVE_PCI
Stephen Rothwell4febd952013-03-07 15:48:16 +110015 select VIRT_TO_BUS
Mark Brown7563bbf2012-04-15 10:52:54 +010016 select ARCH_HAVE_CUSTOM_GPIO_H
GuanXuetao790edb62011-02-26 18:24:56 +080017 select GENERIC_FIND_FIRST_BIT
18 select GENERIC_IRQ_PROBE
Thomas Gleixner37daf322011-03-24 18:26:42 +010019 select GENERIC_IRQ_SHOW
GuanXuetao790edb62011-02-26 18:24:56 +080020 select ARCH_WANT_FRAME_POINTERS
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020021 select GENERIC_IOMAP
David Howells786d35d2012-09-28 14:31:03 +093022 select MODULES_USE_ELF_REL
Christoph Hellwigf616ab52018-05-09 06:53:49 +020023 select NEED_DMA_MAP_STATE
Peter Zijlstra6137fed2018-09-04 17:04:07 +020024 select MMU_GATHER_NO_RANGE if MMU
GuanXuetao790edb62011-02-26 18:24:56 +080025 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
GuanXuetao790edb62011-02-26 18:24:56 +080031config GENERIC_CSUM
32 def_bool y
33
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070034config NO_IOPORT_MAP
GuanXuetao790edb62011-02-26 18:24:56 +080035 bool
36
37config STACKTRACE_SUPPORT
38 def_bool y
39
GuanXuetao790edb62011-02-26 18:24:56 +080040config LOCKDEP_SUPPORT
41 def_bool y
42
GuanXuetao790edb62011-02-26 18:24:56 +080043config ARCH_HAS_ILOG2_U32
44 bool
45
46config ARCH_HAS_ILOG2_U64
47 bool
48
GuanXuetao790edb62011-02-26 18:24:56 +080049config GENERIC_HWEIGHT
50 def_bool y
51
52config GENERIC_CALIBRATE_DELAY
53 def_bool y
54
55config ARCH_MAY_HAVE_PC_FDC
56 bool
57
Guan Xuetao446d1412012-04-12 09:18:46 +080058config ZONE_DMA
59 def_bool y
60
GuanXuetao790edb62011-02-26 18:24:56 +080061menu "System Type"
62
63config MMU
64 def_bool y
65
66config ARCH_FPGA
67 bool
68
69config ARCH_PUV3
70 def_bool y
71 select CPU_UCV2
72 select GENERIC_CLOCKEVENTS
73 select HAVE_CLK
Linus Walleijc40d54a2016-04-19 13:27:28 +020074 select GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +080075
76# CONFIGs for ARCH_PUV3
77
78if ARCH_PUV3
79
80choice
81 prompt "Board Selection"
82 default PUV3_DB0913
83
84config PUV3_FPGA_DLX200
85 select ARCH_FPGA
86 bool "FPGA board"
87
88config PUV3_DB0913
89 bool "DEBUG board (0913)"
90
91config PUV3_NB0916
92 bool "NetBook board (0916)"
Thierry Reding79c11b62012-08-31 08:29:24 +020093 select PWM
94 select PWM_PUV3
GuanXuetao790edb62011-02-26 18:24:56 +080095
96config PUV3_SMW0919
97 bool "Security Mini-Workstation board (0919)"
98
99endchoice
100
101config PUV3_PM
102 def_bool y if !ARCH_FPGA
103
104endif
105
106source "arch/unicore32/mm/Kconfig"
107
Masanari Iida83fc61a2017-09-26 12:47:59 +0900108comment "Floating point support"
GuanXuetao790edb62011-02-26 18:24:56 +0800109
110config UNICORE_FPU_F64
111 def_bool y if !ARCH_FPGA
112
113endmenu
114
GuanXuetao790edb62011-02-26 18:24:56 +0800115menu "Kernel Features"
116
GuanXuetao790edb62011-02-26 18:24:56 +0800117source "kernel/Kconfig.hz"
118
GuanXuetao790edb62011-02-26 18:24:56 +0800119config LEDS
120 def_bool y
Alexandre Courbot76ec9d12013-03-28 04:34:56 -0700121 depends on GPIOLIB
GuanXuetao790edb62011-02-26 18:24:56 +0800122
123config ALIGNMENT_TRAP
124 def_bool y
125 help
126 Unicore processors can not fetch/store information which is not
127 naturally aligned on the bus, i.e., a 4 byte fetch must start at an
128 address divisible by 4. On 32-bit Unicore processors, these non-aligned
129 fetch/store instructions will be emulated in software if you say
130 here, which has a severe performance impact. This is necessary for
131 correct operation of some network protocols. With an IP-only
132 configuration it is safe to say N, otherwise say Y.
133
134endmenu
135
136menu "Boot options"
137
138config CMDLINE
139 string "Default kernel command string"
140 default ""
141
142config CMDLINE_FORCE
143 bool "Always use the default kernel command string"
144 depends on CMDLINE != ""
145 help
146 Always use the default kernel command string, even if the boot
147 loader passes other arguments to the kernel.
148 This is useful if you cannot or don't want to change the
149 command-line options your boot loader passes to the kernel.
150
151 If unsure, say N.
152
153endmenu
154
GuanXuetao790edb62011-02-26 18:24:56 +0800155menu "Power management options"
156
157source "kernel/power/Kconfig"
158
GuanXuetao790edb62011-02-26 18:24:56 +0800159source "drivers/cpufreq/Kconfig"
GuanXuetao790edb62011-02-26 18:24:56 +0800160
161config ARCH_SUSPEND_POSSIBLE
162 def_bool y if !ARCH_FPGA
163
164config ARCH_HIBERNATION_POSSIBLE
165 def_bool y if !ARCH_FPGA
166
167endmenu
168
GuanXuetao790edb62011-02-26 18:24:56 +0800169if ARCH_PUV3
170
171config PUV3_GPIO
172 bool
173 depends on !ARCH_FPGA
Kees Cookc2844642012-10-23 13:01:43 -0700174 select GPIO_SYSFS
GuanXuetao790edb62011-02-26 18:24:56 +0800175 default y
176
GuanXuetaofa7499e2011-02-26 19:51:18 +0800177if PUV3_NB0916
178
179menu "PKUnity NetBook-0916 Features"
180
181config I2C_BATTERY_BQ27200
182 tristate "I2C Battery BQ27200 Support"
Paul Bolle88890232011-11-13 01:43:23 +0100183 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800184 select POWER_SUPPLY
Andrew F. Davis081bab22015-09-22 14:35:06 -0500185 select BATTERY_BQ27XXX
GuanXuetaofa7499e2011-02-26 19:51:18 +0800186
187config I2C_EEPROM_AT24
188 tristate "I2C EEPROMs AT24 support"
Paul Bolle88890232011-11-13 01:43:23 +0100189 select I2C_PUV3
GuanXuetaofa7499e2011-02-26 19:51:18 +0800190 select EEPROM_AT24
191
192config LCD_BACKLIGHT
193 tristate "LCD Backlight support"
GuanXuetaofa7499e2011-02-26 19:51:18 +0800194 select BACKLIGHT_PWM
195
196endmenu
197
198endif
199
GuanXuetao790edb62011-02-26 18:24:56 +0800200endif