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