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 |
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 | |
| 33 | config NO_IOPORT |
| 34 | bool |
| 35 | |
| 36 | config STACKTRACE_SUPPORT |
| 37 | def_bool y |
| 38 | |
| 39 | config HAVE_LATENCYTOP_SUPPORT |
| 40 | def_bool y |
| 41 | |
| 42 | config LOCKDEP_SUPPORT |
| 43 | def_bool y |
| 44 | |
| 45 | config RWSEM_GENERIC_SPINLOCK |
| 46 | def_bool y |
| 47 | |
| 48 | config RWSEM_XCHGADD_ALGORITHM |
| 49 | bool |
| 50 | |
| 51 | config ARCH_HAS_ILOG2_U32 |
| 52 | bool |
| 53 | |
| 54 | config ARCH_HAS_ILOG2_U64 |
| 55 | bool |
| 56 | |
| 57 | config ARCH_HAS_CPUFREQ |
| 58 | bool |
| 59 | |
| 60 | config GENERIC_HWEIGHT |
| 61 | def_bool y |
| 62 | |
| 63 | config GENERIC_CALIBRATE_DELAY |
| 64 | def_bool y |
| 65 | |
| 66 | config ARCH_MAY_HAVE_PC_FDC |
| 67 | bool |
| 68 | |
| 69 | config NEED_DMA_MAP_STATE |
| 70 | def_bool y |
| 71 | |
| 72 | source "init/Kconfig" |
| 73 | |
| 74 | source "kernel/Kconfig.freezer" |
| 75 | |
| 76 | menu "System Type" |
| 77 | |
| 78 | config MMU |
| 79 | def_bool y |
| 80 | |
| 81 | config ARCH_FPGA |
| 82 | bool |
| 83 | |
| 84 | config ARCH_PUV3 |
| 85 | def_bool y |
| 86 | select CPU_UCV2 |
| 87 | select GENERIC_CLOCKEVENTS |
| 88 | select HAVE_CLK |
| 89 | select ARCH_REQUIRE_GPIOLIB |
| 90 | select ARCH_HAS_CPUFREQ |
| 91 | |
| 92 | # CONFIGs for ARCH_PUV3 |
| 93 | |
| 94 | if ARCH_PUV3 |
| 95 | |
| 96 | choice |
| 97 | prompt "Board Selection" |
| 98 | default PUV3_DB0913 |
| 99 | |
| 100 | config PUV3_FPGA_DLX200 |
| 101 | select ARCH_FPGA |
| 102 | bool "FPGA board" |
| 103 | |
| 104 | config PUV3_DB0913 |
| 105 | bool "DEBUG board (0913)" |
| 106 | |
| 107 | config PUV3_NB0916 |
| 108 | bool "NetBook board (0916)" |
| 109 | select HAVE_PWM |
| 110 | |
| 111 | config PUV3_SMW0919 |
| 112 | bool "Security Mini-Workstation board (0919)" |
| 113 | |
| 114 | endchoice |
| 115 | |
| 116 | config PUV3_PM |
| 117 | def_bool y if !ARCH_FPGA |
| 118 | |
| 119 | endif |
| 120 | |
| 121 | source "arch/unicore32/mm/Kconfig" |
| 122 | |
| 123 | comment "Floating poing support" |
| 124 | |
| 125 | config UNICORE_FPU_F64 |
| 126 | def_bool y if !ARCH_FPGA |
| 127 | |
| 128 | endmenu |
| 129 | |
| 130 | menu "Bus support" |
| 131 | |
| 132 | config PCI |
| 133 | bool "PCI Support" |
| 134 | help |
| 135 | Find out whether you have a PCI motherboard. PCI is the name of a |
| 136 | bus system, i.e. the way the CPU talks to the other stuff inside |
| 137 | your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or |
| 138 | VESA. If you have PCI, say Y, otherwise N. |
| 139 | |
| 140 | source "drivers/pci/Kconfig" |
| 141 | |
| 142 | source "drivers/pcmcia/Kconfig" |
| 143 | |
| 144 | endmenu |
| 145 | |
| 146 | menu "Kernel Features" |
| 147 | |
| 148 | source "kernel/time/Kconfig" |
| 149 | |
| 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 | |
| 225 | config PUV3_PWM |
| 226 | tristate |
| 227 | default BACKLIGHT_PWM |
| 228 | help |
| 229 | Enable support for NB0916 PWM controllers |
| 230 | |
| 231 | config PUV3_RTC |
| 232 | tristate "PKUnity v3 RTC Support" |
| 233 | depends on !ARCH_FPGA |
| 234 | |
GuanXuetao | fa7499e | 2011-02-26 19:51:18 +0800 | [diff] [blame] | 235 | if PUV3_NB0916 |
| 236 | |
| 237 | menu "PKUnity NetBook-0916 Features" |
| 238 | |
| 239 | config I2C_BATTERY_BQ27200 |
| 240 | tristate "I2C Battery BQ27200 Support" |
| 241 | select PUV3_I2C |
| 242 | select POWER_SUPPLY |
| 243 | select BATTERY_BQ27x00 |
| 244 | |
| 245 | config I2C_EEPROM_AT24 |
| 246 | tristate "I2C EEPROMs AT24 support" |
| 247 | select PUV3_I2C |
| 248 | select MISC_DEVICES |
| 249 | select EEPROM_AT24 |
| 250 | |
| 251 | config LCD_BACKLIGHT |
| 252 | tristate "LCD Backlight support" |
| 253 | select BACKLIGHT_LCD_SUPPORT |
| 254 | select BACKLIGHT_PWM |
| 255 | |
| 256 | endmenu |
| 257 | |
| 258 | endif |
| 259 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 260 | endif |
| 261 | |
| 262 | source "drivers/Kconfig" |
| 263 | |
| 264 | source "fs/Kconfig" |
| 265 | |
| 266 | source "arch/unicore32/Kconfig.debug" |
| 267 | |
| 268 | source "security/Kconfig" |
| 269 | |
| 270 | source "crypto/Kconfig" |
| 271 | |
| 272 | source "lib/Kconfig" |