Kconfig 9.9 KB

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