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