Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License version 2 as |
| 6 | # published by the Free Software Foundation. |
| 7 | # |
| 8 | |
| 9 | config ARC |
| 10 | def_bool y |
| 11 | select ARCH_NO_VIRT_TO_BUS |
Vineet Gupta | 4adeefe | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 12 | select CLONE_BACKWARDS |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 13 | # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev |
| 14 | select DEVTMPFS if !INITRAMFS_SOURCE="" |
| 15 | select GENERIC_ATOMIC64 |
| 16 | select GENERIC_CLOCKEVENTS |
| 17 | select GENERIC_FIND_FIRST_BIT |
| 18 | # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP |
| 19 | select GENERIC_IRQ_SHOW |
Vineet Gupta | bf90e1e | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 20 | select GENERIC_KERNEL_EXECVE |
| 21 | select GENERIC_KERNEL_THREAD |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 22 | select GENERIC_PENDING_IRQ if SMP |
Vineet Gupta | c358103 | 2013-01-18 15:12:19 +0530 | [diff] [blame] | 23 | select GENERIC_SIGALTSTACK |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 24 | select GENERIC_SMP_IDLE_THREAD |
Vineet Gupta | 547f112 | 2013-01-18 15:12:22 +0530 | [diff] [blame^] | 25 | select HAVE_ARCH_TRACEHOOK |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 26 | select HAVE_GENERIC_HARDIRQS |
Vineet Gupta | c121c50 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 27 | select HAVE_MEMBLOCK |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 28 | select IRQ_DOMAIN |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 29 | select MODULES_USE_ELF_RELA |
Vineet Gupta | c121c50 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 30 | select NO_BOOTMEM |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 31 | select OF |
| 32 | select OF_EARLY_FLATTREE |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 33 | |
| 34 | config SCHED_OMIT_FRAME_POINTER |
| 35 | def_bool y |
| 36 | |
| 37 | config GENERIC_CSUM |
| 38 | def_bool y |
| 39 | |
| 40 | config RWSEM_GENERIC_SPINLOCK |
| 41 | def_bool y |
| 42 | |
| 43 | config ARCH_FLATMEM_ENABLE |
| 44 | def_bool y |
| 45 | |
| 46 | config MMU |
| 47 | def_bool y |
| 48 | |
| 49 | config NO_IOPORT |
| 50 | def_bool y |
| 51 | |
| 52 | config GENERIC_CALIBRATE_DELAY |
| 53 | def_bool y |
| 54 | |
| 55 | config GENERIC_HWEIGHT |
| 56 | def_bool y |
| 57 | |
| 58 | config BINFMT_ELF |
| 59 | def_bool y |
| 60 | |
| 61 | config HAVE_LATENCYTOP_SUPPORT |
| 62 | def_bool y |
| 63 | |
| 64 | config NO_DMA |
| 65 | def_bool n |
| 66 | |
| 67 | source "init/Kconfig" |
| 68 | source "kernel/Kconfig.freezer" |
| 69 | |
| 70 | menu "ARC Architecture Configuration" |
| 71 | |
| 72 | choice |
| 73 | prompt "ARC Platform" |
| 74 | default ARC_PLAT_FPGA_LEGACY |
| 75 | |
| 76 | config ARC_PLAT_FPGA_LEGACY |
| 77 | bool "\"Legacy\" ARC FPGA dev platform" |
| 78 | help |
| 79 | Support for ARC development platforms, provided by Synopsys. |
| 80 | These are based on FPGA or ISS. e.g. |
| 81 | - ARCAngel4 |
| 82 | - ML509 |
| 83 | - MetaWare ISS |
| 84 | |
| 85 | #New platform adds here |
| 86 | endchoice |
| 87 | |
| 88 | menu "ARC CPU Configuration" |
| 89 | |
| 90 | choice |
| 91 | prompt "ARC Core" |
| 92 | default ARC_CPU_770 |
| 93 | |
| 94 | config ARC_CPU_750D |
| 95 | bool "ARC750D" |
| 96 | help |
| 97 | Support for ARC750 core |
| 98 | |
| 99 | config ARC_CPU_770 |
| 100 | bool "ARC770" |
| 101 | select ARC_CPU_REL_4_10 |
| 102 | help |
| 103 | Support for ARC770 core introduced with Rel 4.10 (Summer 2011) |
| 104 | This core has a bunch of cool new features: |
| 105 | -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4) |
| 106 | Shared Address Spaces (for sharing TLB entires in MMU) |
| 107 | -Caches: New Prog Model, Region Flush |
| 108 | -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr |
| 109 | |
| 110 | endchoice |
| 111 | |
| 112 | config CPU_BIG_ENDIAN |
| 113 | bool "Enable Big Endian Mode" |
| 114 | default n |
| 115 | help |
| 116 | Build kernel for Big Endian Mode of ARC CPU |
| 117 | |
| 118 | menuconfig ARC_CACHE |
| 119 | bool "Enable Cache Support" |
| 120 | default y |
| 121 | |
| 122 | if ARC_CACHE |
| 123 | |
| 124 | config ARC_CACHE_LINE_SHIFT |
| 125 | int "Cache Line Length (as power of 2)" |
| 126 | range 5 7 |
| 127 | default "6" |
| 128 | help |
| 129 | Starting with ARC700 4.9, Cache line length is configurable, |
| 130 | This option specifies "N", with Line-len = 2 power N |
| 131 | So line lengths of 32, 64, 128 are specified by 5,6,7, respectively |
| 132 | Linux only supports same line lengths for I and D caches. |
| 133 | |
| 134 | config ARC_HAS_ICACHE |
| 135 | bool "Use Instruction Cache" |
| 136 | default y |
| 137 | |
| 138 | config ARC_HAS_DCACHE |
| 139 | bool "Use Data Cache" |
| 140 | default y |
| 141 | |
| 142 | config ARC_CACHE_PAGES |
| 143 | bool "Per Page Cache Control" |
| 144 | default y |
| 145 | depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE |
| 146 | help |
| 147 | This can be used to over-ride the global I/D Cache Enable on a |
| 148 | per-page basis (but only for pages accessed via MMU such as |
| 149 | Kernel Virtual address or User Virtual Address) |
| 150 | TLB entries have a per-page Cache Enable Bit. |
| 151 | Note that Global I/D ENABLE + Per Page DISABLE works but corollary |
| 152 | Global DISABLE + Per Page ENABLE won't work |
| 153 | |
| 154 | endif #ARC_CACHE |
| 155 | |
| 156 | config ARC_HAS_HW_MPY |
| 157 | bool "Use Hardware Multiplier (Normal or Faster XMAC)" |
| 158 | default y |
| 159 | help |
| 160 | Influences how gcc generates code for MPY operations. |
| 161 | If enabled, MPYxx insns are generated, provided by Standard/XMAC |
| 162 | Multipler. Otherwise software multipy lib is used |
| 163 | |
| 164 | choice |
| 165 | prompt "ARC700 MMU Version" |
| 166 | default ARC_MMU_V3 if ARC_CPU_770 |
| 167 | default ARC_MMU_V2 if ARC_CPU_750D |
| 168 | |
| 169 | config ARC_MMU_V1 |
| 170 | bool "MMU v1" |
| 171 | help |
| 172 | Orig ARC700 MMU |
| 173 | |
| 174 | config ARC_MMU_V2 |
| 175 | bool "MMU v2" |
| 176 | help |
| 177 | Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio |
| 178 | when 2 D-TLB and 1 I-TLB entries index into same 2way set. |
| 179 | |
| 180 | config ARC_MMU_V3 |
| 181 | bool "MMU v3" |
| 182 | depends on ARC_CPU_770 |
| 183 | help |
| 184 | Introduced with ARC700 4.10: New Features |
| 185 | Variable Page size (1k-16k), var JTLB size 128 x (2 or 4) |
| 186 | Shared Address Spaces (SASID) |
| 187 | |
| 188 | endchoice |
| 189 | |
| 190 | |
| 191 | choice |
| 192 | prompt "MMU Page Size" |
| 193 | default ARC_PAGE_SIZE_8K |
| 194 | |
| 195 | config ARC_PAGE_SIZE_8K |
| 196 | bool "8KB" |
| 197 | help |
| 198 | Choose between 8k vs 16k |
| 199 | |
| 200 | config ARC_PAGE_SIZE_16K |
| 201 | bool "16KB" |
| 202 | depends on ARC_MMU_V3 |
| 203 | |
| 204 | config ARC_PAGE_SIZE_4K |
| 205 | bool "4KB" |
| 206 | depends on ARC_MMU_V3 |
| 207 | |
| 208 | endchoice |
| 209 | |
| 210 | config ARC_FPU_SAVE_RESTORE |
| 211 | bool "Enable FPU state persistence across context switch" |
| 212 | default n |
| 213 | help |
| 214 | Double Precision Floating Point unit had dedictaed regs which |
| 215 | need to be saved/restored across context-switch. |
| 216 | Note that ARC FPU is overly simplistic, unlike say x86, which has |
| 217 | hardware pieces to allow software to conditionally save/restore, |
| 218 | based on actual usage of FPU by a task. Thus our implemn does |
| 219 | this for all tasks in system. |
| 220 | |
| 221 | menuconfig ARC_CPU_REL_4_10 |
| 222 | bool "Enable support for Rel 4.10 features" |
| 223 | default n |
| 224 | help |
| 225 | -ARC770 (and dependent features) enabled |
| 226 | -ARC750 also shares some of the new features with 770 |
| 227 | |
| 228 | config ARC_HAS_LLSC |
| 229 | bool "Insn: LLOCK/SCOND (efficient atomic ops)" |
| 230 | default y |
| 231 | depends on ARC_CPU_770 |
| 232 | # if SMP, enable LLSC ONLY if ARC implementation has coherent atomics |
| 233 | depends on !SMP || ARC_HAS_COH_LLSC |
| 234 | |
| 235 | config ARC_HAS_SWAPE |
| 236 | bool "Insn: SWAPE (endian-swap)" |
| 237 | default y |
| 238 | depends on ARC_CPU_REL_4_10 |
| 239 | |
| 240 | config ARC_HAS_RTSC |
| 241 | bool "Insn: RTSC (64-bit r/o cycle counter)" |
| 242 | default y |
| 243 | depends on ARC_CPU_REL_4_10 |
| 244 | |
| 245 | endmenu # "ARC CPU Configuration" |
| 246 | |
| 247 | menu "Platform Board Configuration" |
| 248 | |
| 249 | source "arch/arc/plat-arcfpga/Kconfig" |
| 250 | |
| 251 | #New platform adds here |
| 252 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 253 | config LINUX_LINK_BASE |
| 254 | hex "Linux Link Address" |
| 255 | default "0x80000000" |
| 256 | help |
| 257 | ARC700 divides the 32 bit phy address space into two equal halves |
| 258 | -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU |
| 259 | -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel |
| 260 | Typically Linux kernel is linked at the start of untransalted addr, |
| 261 | hence the default value of 0x8zs. |
| 262 | However some customers have peripherals mapped at this addr, so |
| 263 | Linux needs to be scooted a bit. |
| 264 | If you don't know what the above means, leave this setting alone. |
| 265 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 266 | endmenu # "Platform Board Configuration" |
| 267 | |
Vineet Gupta | 080c374 | 2013-02-11 19:52:57 +0530 | [diff] [blame] | 268 | config ARC_CURR_IN_REG |
| 269 | bool "Dedicate Register r25 for current_task pointer" |
| 270 | default y |
| 271 | help |
| 272 | This reserved Register R25 to point to Current Task in |
| 273 | kernel mode. This saves memory access for each such access |
| 274 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 275 | config ARC_STACK_NONEXEC |
| 276 | bool "Make stack non-executable" |
| 277 | default n |
| 278 | help |
| 279 | To disable the execute permissions of stack/heap of processes |
| 280 | which are enabled by default. |
| 281 | |
| 282 | config HZ |
| 283 | int "Timer Frequency" |
| 284 | default 100 |
| 285 | |
| 286 | menuconfig ARC_DBG |
| 287 | bool "ARC debugging" |
| 288 | default y |
| 289 | |
| 290 | config ARC_DBG_TLB_PARANOIA |
| 291 | bool "Paranoia Checks in Low Level TLB Handlers" |
| 292 | depends on ARC_DBG |
| 293 | default n |
| 294 | |
| 295 | config ARC_DBG_TLB_MISS_COUNT |
| 296 | bool "Profile TLB Misses" |
| 297 | default n |
| 298 | select DEBUG_FS |
| 299 | depends on ARC_DBG |
| 300 | help |
| 301 | Counts number of I and D TLB Misses and exports them via Debugfs |
| 302 | The counters can be cleared via Debugfs as well |
| 303 | |
| 304 | config CMDLINE |
| 305 | string "Kernel command line to built-in" |
| 306 | default "print-fatal-signals=1" |
| 307 | help |
| 308 | The default command line which will be appended to the optional |
| 309 | u-boot provided command line (see below) |
| 310 | |
| 311 | config CMDLINE_UBOOT |
| 312 | bool "Support U-boot kernel command line passing" |
| 313 | default n |
| 314 | help |
| 315 | If you are using U-boot (www.denx.de) and wish to pass the kernel |
| 316 | command line from the U-boot environment to the Linux kernel then |
| 317 | switch this option on. |
| 318 | ARC U-boot will setup the cmdline in RAM/flash and set r2 to point |
| 319 | to it. kernel startup code will copy the string into cmdline buffer |
| 320 | and also append CONFIG_CMDLINE. |
| 321 | |
Vineet Gupta | 999159a | 2013-01-22 17:00:52 +0530 | [diff] [blame] | 322 | config ARC_BUILTIN_DTB_NAME |
| 323 | string "Built in DTB" |
| 324 | help |
| 325 | Set the name of the DTB to embed in the vmlinux binary |
| 326 | Leaving it blank selects the minimal "skeleton" dtb |
| 327 | |
Vineet Gupta | cfdbc2e | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 328 | source "kernel/Kconfig.preempt" |
| 329 | |
| 330 | endmenu # "ARC Architecture Configuration" |
| 331 | |
| 332 | source "mm/Kconfig" |
| 333 | source "net/Kconfig" |
| 334 | source "drivers/Kconfig" |
| 335 | source "fs/Kconfig" |
| 336 | source "arch/arc/Kconfig.debug" |
| 337 | source "security/Kconfig" |
| 338 | source "crypto/Kconfig" |
| 339 | source "lib/Kconfig" |