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