Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 2 | config UNICORE32 |
| 3 | def_bool y |
Dan Williams | 21266be | 2015-11-19 18:19:29 -0800 | [diff] [blame] | 4 | select ARCH_HAS_DEVMEM_IS_ALLOWED |
Mark Salter | e00ca51 | 2013-10-07 22:17:30 -0400 | [diff] [blame] | 5 | select ARCH_MIGHT_HAVE_PC_PARPORT |
Mark Salter | d444b03 | 2014-01-01 11:33:53 -0800 | [diff] [blame] | 6 | select ARCH_MIGHT_HAVE_PC_SERIO |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 7 | select HAVE_MEMBLOCK |
| 8 | select HAVE_GENERIC_DMA_COHERENT |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 9 | select HAVE_KERNEL_GZIP |
| 10 | select HAVE_KERNEL_BZIP2 |
Fengguang Wu | 82e54a6 | 2012-10-04 17:11:23 -0700 | [diff] [blame] | 11 | select GENERIC_ATOMIC64 |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 12 | select HAVE_KERNEL_LZO |
| 13 | select HAVE_KERNEL_LZMA |
Stephen Rothwell | 4febd95 | 2013-03-07 15:48:16 +1100 | [diff] [blame] | 14 | select VIRT_TO_BUS |
Mark Brown | 7563bbf | 2012-04-15 10:52:54 +0100 | [diff] [blame] | 15 | select ARCH_HAVE_CUSTOM_GPIO_H |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 16 | select GENERIC_FIND_FIRST_BIT |
| 17 | select GENERIC_IRQ_PROBE |
Thomas Gleixner | 37daf32 | 2011-03-24 18:26:42 +0100 | [diff] [blame] | 18 | select GENERIC_IRQ_SHOW |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 19 | select ARCH_WANT_FRAME_POINTERS |
Michael S. Tsirkin | 4673ca8 | 2011-11-24 14:54:28 +0200 | [diff] [blame] | 20 | select GENERIC_IOMAP |
David Howells | 786d35d | 2012-09-28 14:31:03 +0930 | [diff] [blame] | 21 | select MODULES_USE_ELF_REL |
Christoph Hellwig | f616ab5 | 2018-05-09 06:53:49 +0200 | [diff] [blame] | 22 | select NEED_DMA_MAP_STATE |
Christoph Hellwig | 09230cb | 2018-04-24 09:00:54 +0200 | [diff] [blame] | 23 | select SWIOTLB |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 30 | config GENERIC_CSUM |
| 31 | def_bool y |
| 32 | |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 33 | config NO_IOPORT_MAP |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 34 | bool |
| 35 | |
| 36 | config STACKTRACE_SUPPORT |
| 37 | def_bool y |
| 38 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 39 | config LOCKDEP_SUPPORT |
| 40 | def_bool y |
| 41 | |
| 42 | config RWSEM_GENERIC_SPINLOCK |
| 43 | def_bool y |
| 44 | |
| 45 | config RWSEM_XCHGADD_ALGORITHM |
| 46 | bool |
| 47 | |
| 48 | config ARCH_HAS_ILOG2_U32 |
| 49 | bool |
| 50 | |
| 51 | config ARCH_HAS_ILOG2_U64 |
| 52 | bool |
| 53 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 54 | config GENERIC_HWEIGHT |
| 55 | def_bool y |
| 56 | |
| 57 | config GENERIC_CALIBRATE_DELAY |
| 58 | def_bool y |
| 59 | |
| 60 | config ARCH_MAY_HAVE_PC_FDC |
| 61 | bool |
| 62 | |
Guan Xuetao | 446d141 | 2012-04-12 09:18:46 +0800 | [diff] [blame] | 63 | config ZONE_DMA |
| 64 | def_bool y |
| 65 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 66 | menu "System Type" |
| 67 | |
| 68 | config MMU |
| 69 | def_bool y |
| 70 | |
| 71 | config ARCH_FPGA |
| 72 | bool |
| 73 | |
| 74 | config ARCH_PUV3 |
| 75 | def_bool y |
| 76 | select CPU_UCV2 |
| 77 | select GENERIC_CLOCKEVENTS |
| 78 | select HAVE_CLK |
Linus Walleij | c40d54a | 2016-04-19 13:27:28 +0200 | [diff] [blame] | 79 | select GPIOLIB |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 80 | |
| 81 | # CONFIGs for ARCH_PUV3 |
| 82 | |
| 83 | if ARCH_PUV3 |
| 84 | |
| 85 | choice |
| 86 | prompt "Board Selection" |
| 87 | default PUV3_DB0913 |
| 88 | |
| 89 | config PUV3_FPGA_DLX200 |
| 90 | select ARCH_FPGA |
| 91 | bool "FPGA board" |
| 92 | |
| 93 | config PUV3_DB0913 |
| 94 | bool "DEBUG board (0913)" |
| 95 | |
| 96 | config PUV3_NB0916 |
| 97 | bool "NetBook board (0916)" |
Thierry Reding | 79c11b6 | 2012-08-31 08:29:24 +0200 | [diff] [blame] | 98 | select PWM |
| 99 | select PWM_PUV3 |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 100 | |
| 101 | config PUV3_SMW0919 |
| 102 | bool "Security Mini-Workstation board (0919)" |
| 103 | |
| 104 | endchoice |
| 105 | |
| 106 | config PUV3_PM |
| 107 | def_bool y if !ARCH_FPGA |
| 108 | |
| 109 | endif |
| 110 | |
| 111 | source "arch/unicore32/mm/Kconfig" |
| 112 | |
Masanari Iida | 83fc61a | 2017-09-26 12:47:59 +0900 | [diff] [blame] | 113 | comment "Floating point support" |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 114 | |
| 115 | config UNICORE_FPU_F64 |
| 116 | def_bool y if !ARCH_FPGA |
| 117 | |
| 118 | endmenu |
| 119 | |
| 120 | menu "Bus support" |
| 121 | |
| 122 | config PCI |
| 123 | bool "PCI Support" |
| 124 | help |
| 125 | Find out whether you have a PCI motherboard. PCI is the name of a |
| 126 | bus system, i.e. the way the CPU talks to the other stuff inside |
| 127 | your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or |
| 128 | VESA. If you have PCI, say Y, otherwise N. |
| 129 | |
| 130 | source "drivers/pci/Kconfig" |
| 131 | |
| 132 | source "drivers/pcmcia/Kconfig" |
| 133 | |
| 134 | endmenu |
| 135 | |
| 136 | menu "Kernel Features" |
| 137 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 138 | source "kernel/Kconfig.hz" |
| 139 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 140 | config LEDS |
| 141 | def_bool y |
Alexandre Courbot | 76ec9d1 | 2013-03-28 04:34:56 -0700 | [diff] [blame] | 142 | depends on GPIOLIB |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 143 | |
| 144 | config ALIGNMENT_TRAP |
| 145 | def_bool y |
| 146 | help |
| 147 | Unicore processors can not fetch/store information which is not |
| 148 | naturally aligned on the bus, i.e., a 4 byte fetch must start at an |
| 149 | address divisible by 4. On 32-bit Unicore processors, these non-aligned |
| 150 | fetch/store instructions will be emulated in software if you say |
| 151 | here, which has a severe performance impact. This is necessary for |
| 152 | correct operation of some network protocols. With an IP-only |
| 153 | configuration it is safe to say N, otherwise say Y. |
| 154 | |
| 155 | endmenu |
| 156 | |
| 157 | menu "Boot options" |
| 158 | |
| 159 | config CMDLINE |
| 160 | string "Default kernel command string" |
| 161 | default "" |
| 162 | |
| 163 | config CMDLINE_FORCE |
| 164 | bool "Always use the default kernel command string" |
| 165 | depends on CMDLINE != "" |
| 166 | help |
| 167 | Always use the default kernel command string, even if the boot |
| 168 | loader passes other arguments to the kernel. |
| 169 | This is useful if you cannot or don't want to change the |
| 170 | command-line options your boot loader passes to the kernel. |
| 171 | |
| 172 | If unsure, say N. |
| 173 | |
| 174 | endmenu |
| 175 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 176 | menu "Power management options" |
| 177 | |
| 178 | source "kernel/power/Kconfig" |
| 179 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 180 | source "drivers/cpufreq/Kconfig" |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 181 | |
| 182 | config ARCH_SUSPEND_POSSIBLE |
| 183 | def_bool y if !ARCH_FPGA |
| 184 | |
| 185 | config ARCH_HIBERNATION_POSSIBLE |
| 186 | def_bool y if !ARCH_FPGA |
| 187 | |
| 188 | endmenu |
| 189 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 190 | if ARCH_PUV3 |
| 191 | |
| 192 | config PUV3_GPIO |
| 193 | bool |
| 194 | depends on !ARCH_FPGA |
Kees Cook | c284464 | 2012-10-23 13:01:43 -0700 | [diff] [blame] | 195 | select GPIO_SYSFS |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 196 | default y |
| 197 | |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 198 | if PUV3_NB0916 |
| 199 | |
| 200 | menu "PKUnity NetBook-0916 Features" |
| 201 | |
| 202 | config I2C_BATTERY_BQ27200 |
| 203 | tristate "I2C Battery BQ27200 Support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 204 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 205 | select POWER_SUPPLY |
Andrew F. Davis | 081bab2 | 2015-09-22 14:35:06 -0500 | [diff] [blame] | 206 | select BATTERY_BQ27XXX |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 207 | |
| 208 | config I2C_EEPROM_AT24 |
| 209 | tristate "I2C EEPROMs AT24 support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 210 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 211 | select EEPROM_AT24 |
| 212 | |
| 213 | config LCD_BACKLIGHT |
| 214 | tristate "LCD Backlight support" |
| 215 | select BACKLIGHT_LCD_SUPPORT |
| 216 | select BACKLIGHT_PWM |
| 217 | |
| 218 | endmenu |
| 219 | |
| 220 | endif |
| 221 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 222 | endif |