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 |
Yury Norov | 942fa98 | 2018-05-16 11:18:49 +0300 | [diff] [blame] | 4 | select ARCH_32BIT_OFF_T |
Dan Williams | 21266be | 2015-11-19 18:19:29 -0800 | [diff] [blame] | 5 | select ARCH_HAS_DEVMEM_IS_ALLOWED |
Christoph Hellwig | d8ae8a3 | 2019-05-13 17:18:30 -0700 | [diff] [blame] | 6 | select ARCH_HAS_KEEPINITRD |
Mark Salter | e00ca51 | 2013-10-07 22:17:30 -0400 | [diff] [blame] | 7 | select ARCH_MIGHT_HAVE_PC_PARPORT |
Mark Salter | d444b03 | 2014-01-01 11:33:53 -0800 | [diff] [blame] | 8 | select ARCH_MIGHT_HAVE_PC_SERIO |
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 |
Christoph Hellwig | eb01d42 | 2018-11-15 20:05:32 +0100 | [diff] [blame] | 14 | select HAVE_PCI |
Stephen Rothwell | 4febd95 | 2013-03-07 15:48:16 +1100 | [diff] [blame] | 15 | select VIRT_TO_BUS |
Mark Brown | 7563bbf | 2012-04-15 10:52:54 +0100 | [diff] [blame] | 16 | select ARCH_HAVE_CUSTOM_GPIO_H |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 17 | select GENERIC_FIND_FIRST_BIT |
| 18 | select GENERIC_IRQ_PROBE |
Thomas Gleixner | 37daf32 | 2011-03-24 18:26:42 +0100 | [diff] [blame] | 19 | select GENERIC_IRQ_SHOW |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 20 | select ARCH_WANT_FRAME_POINTERS |
Michael S. Tsirkin | 4673ca8 | 2011-11-24 14:54:28 +0200 | [diff] [blame] | 21 | select GENERIC_IOMAP |
David Howells | 786d35d | 2012-09-28 14:31:03 +0930 | [diff] [blame] | 22 | select MODULES_USE_ELF_REL |
Christoph Hellwig | f616ab5 | 2018-05-09 06:53:49 +0200 | [diff] [blame] | 23 | select NEED_DMA_MAP_STATE |
Peter Zijlstra | 6137fed | 2018-09-04 17:04:07 +0200 | [diff] [blame] | 24 | select MMU_GATHER_NO_RANGE if MMU |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 31 | config GENERIC_CSUM |
| 32 | def_bool y |
| 33 | |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 34 | config NO_IOPORT_MAP |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 35 | bool |
| 36 | |
| 37 | config STACKTRACE_SUPPORT |
| 38 | def_bool y |
| 39 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 40 | config LOCKDEP_SUPPORT |
| 41 | def_bool y |
| 42 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 43 | config ARCH_HAS_ILOG2_U32 |
| 44 | bool |
| 45 | |
| 46 | config ARCH_HAS_ILOG2_U64 |
| 47 | bool |
| 48 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 49 | config GENERIC_HWEIGHT |
| 50 | def_bool y |
| 51 | |
| 52 | config GENERIC_CALIBRATE_DELAY |
| 53 | def_bool y |
| 54 | |
| 55 | config ARCH_MAY_HAVE_PC_FDC |
| 56 | bool |
| 57 | |
Guan Xuetao | 446d141 | 2012-04-12 09:18:46 +0800 | [diff] [blame] | 58 | config ZONE_DMA |
| 59 | def_bool y |
| 60 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 61 | menu "System Type" |
| 62 | |
| 63 | config MMU |
| 64 | def_bool y |
| 65 | |
| 66 | config ARCH_FPGA |
| 67 | bool |
| 68 | |
| 69 | config ARCH_PUV3 |
| 70 | def_bool y |
| 71 | select CPU_UCV2 |
| 72 | select GENERIC_CLOCKEVENTS |
| 73 | select HAVE_CLK |
Linus Walleij | c40d54a | 2016-04-19 13:27:28 +0200 | [diff] [blame] | 74 | select GPIOLIB |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 75 | |
| 76 | # CONFIGs for ARCH_PUV3 |
| 77 | |
| 78 | if ARCH_PUV3 |
| 79 | |
| 80 | choice |
| 81 | prompt "Board Selection" |
| 82 | default PUV3_DB0913 |
| 83 | |
| 84 | config PUV3_FPGA_DLX200 |
| 85 | select ARCH_FPGA |
| 86 | bool "FPGA board" |
| 87 | |
| 88 | config PUV3_DB0913 |
| 89 | bool "DEBUG board (0913)" |
| 90 | |
| 91 | config PUV3_NB0916 |
| 92 | bool "NetBook board (0916)" |
Thierry Reding | 79c11b6 | 2012-08-31 08:29:24 +0200 | [diff] [blame] | 93 | select PWM |
| 94 | select PWM_PUV3 |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 95 | |
| 96 | config PUV3_SMW0919 |
| 97 | bool "Security Mini-Workstation board (0919)" |
| 98 | |
| 99 | endchoice |
| 100 | |
| 101 | config PUV3_PM |
| 102 | def_bool y if !ARCH_FPGA |
| 103 | |
| 104 | endif |
| 105 | |
| 106 | source "arch/unicore32/mm/Kconfig" |
| 107 | |
Masanari Iida | 83fc61a | 2017-09-26 12:47:59 +0900 | [diff] [blame] | 108 | comment "Floating point support" |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 109 | |
| 110 | config UNICORE_FPU_F64 |
| 111 | def_bool y if !ARCH_FPGA |
| 112 | |
| 113 | endmenu |
| 114 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 115 | menu "Kernel Features" |
| 116 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 117 | source "kernel/Kconfig.hz" |
| 118 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 119 | config LEDS |
| 120 | def_bool y |
Alexandre Courbot | 76ec9d1 | 2013-03-28 04:34:56 -0700 | [diff] [blame] | 121 | depends on GPIOLIB |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 122 | |
| 123 | config 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 | |
| 134 | endmenu |
| 135 | |
| 136 | menu "Boot options" |
| 137 | |
| 138 | config CMDLINE |
| 139 | string "Default kernel command string" |
| 140 | default "" |
| 141 | |
| 142 | config 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 | |
| 153 | endmenu |
| 154 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 155 | menu "Power management options" |
| 156 | |
| 157 | source "kernel/power/Kconfig" |
| 158 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 159 | source "drivers/cpufreq/Kconfig" |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 160 | |
| 161 | config ARCH_SUSPEND_POSSIBLE |
| 162 | def_bool y if !ARCH_FPGA |
| 163 | |
| 164 | config ARCH_HIBERNATION_POSSIBLE |
| 165 | def_bool y if !ARCH_FPGA |
| 166 | |
| 167 | endmenu |
| 168 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 169 | if ARCH_PUV3 |
| 170 | |
| 171 | config PUV3_GPIO |
| 172 | bool |
| 173 | depends on !ARCH_FPGA |
Kees Cook | c284464 | 2012-10-23 13:01:43 -0700 | [diff] [blame] | 174 | select GPIO_SYSFS |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 175 | default y |
| 176 | |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 177 | if PUV3_NB0916 |
| 178 | |
| 179 | menu "PKUnity NetBook-0916 Features" |
| 180 | |
| 181 | config I2C_BATTERY_BQ27200 |
| 182 | tristate "I2C Battery BQ27200 Support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 183 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 184 | select POWER_SUPPLY |
Andrew F. Davis | 081bab2 | 2015-09-22 14:35:06 -0500 | [diff] [blame] | 185 | select BATTERY_BQ27XXX |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 186 | |
| 187 | config I2C_EEPROM_AT24 |
| 188 | tristate "I2C EEPROMs AT24 support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 189 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 190 | select EEPROM_AT24 |
| 191 | |
| 192 | config LCD_BACKLIGHT |
| 193 | tristate "LCD Backlight support" |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 194 | select BACKLIGHT_PWM |
| 195 | |
| 196 | endmenu |
| 197 | |
| 198 | endif |
| 199 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 200 | endif |