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