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