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 |
| 9 | select HAVE_KERNEL_LZO |
| 10 | select HAVE_KERNEL_LZMA |
| 11 | select GENERIC_FIND_FIRST_BIT |
| 12 | select GENERIC_IRQ_PROBE |
Thomas Gleixner | 37daf32 | 2011-03-24 18:26:42 +0100 | [diff] [blame] | 13 | select GENERIC_IRQ_SHOW |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 14 | select ARCH_WANT_FRAME_POINTERS |
Michael S. Tsirkin | 4673ca8 | 2011-11-24 14:54:28 +0200 | [diff] [blame] | 15 | select GENERIC_IOMAP |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 16 | help |
| 17 | UniCore-32 is 32-bit Instruction Set Architecture, |
| 18 | including a series of low-power-consumption RISC chip |
| 19 | designs licensed by PKUnity Ltd. |
| 20 | Please see web page at <http://www.pkunity.com/>. |
| 21 | |
| 22 | config HAVE_PWM |
| 23 | bool |
| 24 | |
| 25 | config GENERIC_GPIO |
| 26 | def_bool y |
| 27 | |
| 28 | config GENERIC_CLOCKEVENTS |
| 29 | bool |
| 30 | |
| 31 | config GENERIC_CSUM |
| 32 | def_bool y |
| 33 | |
| 34 | config NO_IOPORT |
| 35 | bool |
| 36 | |
| 37 | config STACKTRACE_SUPPORT |
| 38 | def_bool y |
| 39 | |
| 40 | config HAVE_LATENCYTOP_SUPPORT |
| 41 | def_bool y |
| 42 | |
| 43 | config LOCKDEP_SUPPORT |
| 44 | def_bool y |
| 45 | |
| 46 | config RWSEM_GENERIC_SPINLOCK |
| 47 | def_bool y |
| 48 | |
| 49 | config RWSEM_XCHGADD_ALGORITHM |
| 50 | bool |
| 51 | |
| 52 | config ARCH_HAS_ILOG2_U32 |
| 53 | bool |
| 54 | |
| 55 | config ARCH_HAS_ILOG2_U64 |
| 56 | bool |
| 57 | |
| 58 | config ARCH_HAS_CPUFREQ |
| 59 | bool |
| 60 | |
| 61 | config GENERIC_HWEIGHT |
| 62 | def_bool y |
| 63 | |
| 64 | config GENERIC_CALIBRATE_DELAY |
| 65 | def_bool y |
| 66 | |
| 67 | config ARCH_MAY_HAVE_PC_FDC |
| 68 | bool |
| 69 | |
| 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)" |
| 110 | select HAVE_PWM |
| 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 | |
| 149 | source "kernel/time/Kconfig" |
| 150 | |
| 151 | source "kernel/Kconfig.preempt" |
| 152 | |
| 153 | source "kernel/Kconfig.hz" |
| 154 | |
| 155 | source "mm/Kconfig" |
| 156 | |
| 157 | config LEDS |
| 158 | def_bool y |
| 159 | depends on GENERIC_GPIO |
| 160 | |
| 161 | config ALIGNMENT_TRAP |
| 162 | def_bool y |
| 163 | help |
| 164 | Unicore processors can not fetch/store information which is not |
| 165 | naturally aligned on the bus, i.e., a 4 byte fetch must start at an |
| 166 | address divisible by 4. On 32-bit Unicore processors, these non-aligned |
| 167 | fetch/store instructions will be emulated in software if you say |
| 168 | here, which has a severe performance impact. This is necessary for |
| 169 | correct operation of some network protocols. With an IP-only |
| 170 | configuration it is safe to say N, otherwise say Y. |
| 171 | |
| 172 | endmenu |
| 173 | |
| 174 | menu "Boot options" |
| 175 | |
| 176 | config CMDLINE |
| 177 | string "Default kernel command string" |
| 178 | default "" |
| 179 | |
| 180 | config CMDLINE_FORCE |
| 181 | bool "Always use the default kernel command string" |
| 182 | depends on CMDLINE != "" |
| 183 | help |
| 184 | Always use the default kernel command string, even if the boot |
| 185 | loader passes other arguments to the kernel. |
| 186 | This is useful if you cannot or don't want to change the |
| 187 | command-line options your boot loader passes to the kernel. |
| 188 | |
| 189 | If unsure, say N. |
| 190 | |
| 191 | endmenu |
| 192 | |
| 193 | menu "Userspace binary formats" |
| 194 | |
| 195 | source "fs/Kconfig.binfmt" |
| 196 | |
| 197 | endmenu |
| 198 | |
| 199 | menu "Power management options" |
| 200 | |
| 201 | source "kernel/power/Kconfig" |
| 202 | |
| 203 | if ARCH_HAS_CPUFREQ |
| 204 | source "drivers/cpufreq/Kconfig" |
| 205 | endif |
| 206 | |
| 207 | config ARCH_SUSPEND_POSSIBLE |
| 208 | def_bool y if !ARCH_FPGA |
| 209 | |
| 210 | config ARCH_HIBERNATION_POSSIBLE |
| 211 | def_bool y if !ARCH_FPGA |
| 212 | |
| 213 | endmenu |
| 214 | |
| 215 | source "net/Kconfig" |
| 216 | |
| 217 | if ARCH_PUV3 |
| 218 | |
| 219 | config PUV3_GPIO |
| 220 | bool |
| 221 | depends on !ARCH_FPGA |
| 222 | select GENERIC_GPIO |
| 223 | select GPIO_SYSFS if EXPERIMENTAL |
| 224 | default y |
| 225 | |
| 226 | config PUV3_PWM |
| 227 | tristate |
| 228 | default BACKLIGHT_PWM |
| 229 | help |
| 230 | Enable support for NB0916 PWM controllers |
| 231 | |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 232 | if PUV3_NB0916 |
| 233 | |
| 234 | menu "PKUnity NetBook-0916 Features" |
| 235 | |
| 236 | config I2C_BATTERY_BQ27200 |
| 237 | tristate "I2C Battery BQ27200 Support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 238 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 239 | select POWER_SUPPLY |
| 240 | select BATTERY_BQ27x00 |
| 241 | |
| 242 | config I2C_EEPROM_AT24 |
| 243 | tristate "I2C EEPROMs AT24 support" |
Paul Bolle | 8889023 | 2011-11-13 01:43:23 +0100 | [diff] [blame] | 244 | select I2C_PUV3 |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 245 | select MISC_DEVICES |
| 246 | select EEPROM_AT24 |
| 247 | |
| 248 | config LCD_BACKLIGHT |
| 249 | tristate "LCD Backlight support" |
| 250 | select BACKLIGHT_LCD_SUPPORT |
| 251 | select BACKLIGHT_PWM |
| 252 | |
| 253 | endmenu |
| 254 | |
| 255 | endif |
| 256 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 257 | endif |
| 258 | |
| 259 | source "drivers/Kconfig" |
| 260 | |
| 261 | source "fs/Kconfig" |
| 262 | |
| 263 | source "arch/unicore32/Kconfig.debug" |
| 264 | |
| 265 | source "security/Kconfig" |
| 266 | |
| 267 | source "crypto/Kconfig" |
| 268 | |
| 269 | source "lib/Kconfig" |