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