Kconfig 10 KB

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