Kconfig 11 KB

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