Kconfig 11 KB

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