Kconfig 10 KB

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