Kconfig 9.3 KB

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