Kconfig 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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_OPROFILE
  28. select IRQ_DOMAIN
  29. select MODULES_USE_ELF_RELA
  30. select NO_BOOTMEM
  31. select OF
  32. select OF_EARLY_FLATTREE
  33. config SCHED_OMIT_FRAME_POINTER
  34. def_bool y
  35. config GENERIC_CSUM
  36. def_bool y
  37. config RWSEM_GENERIC_SPINLOCK
  38. def_bool y
  39. config ARCH_FLATMEM_ENABLE
  40. def_bool y
  41. config MMU
  42. def_bool y
  43. config NO_IOPORT
  44. def_bool y
  45. config GENERIC_CALIBRATE_DELAY
  46. def_bool y
  47. config GENERIC_HWEIGHT
  48. def_bool y
  49. config BINFMT_ELF
  50. def_bool y
  51. config HAVE_LATENCYTOP_SUPPORT
  52. def_bool y
  53. config NO_DMA
  54. def_bool n
  55. source "init/Kconfig"
  56. source "kernel/Kconfig.freezer"
  57. menu "ARC Architecture Configuration"
  58. choice
  59. prompt "ARC Platform"
  60. default ARC_PLAT_FPGA_LEGACY
  61. config ARC_PLAT_FPGA_LEGACY
  62. bool "\"Legacy\" ARC FPGA dev platform"
  63. help
  64. Support for ARC development platforms, provided by Synopsys.
  65. These are based on FPGA or ISS. e.g.
  66. - ARCAngel4
  67. - ML509
  68. - MetaWare ISS
  69. #New platform adds here
  70. endchoice
  71. menu "ARC CPU Configuration"
  72. choice
  73. prompt "ARC Core"
  74. default ARC_CPU_770
  75. config ARC_CPU_750D
  76. bool "ARC750D"
  77. help
  78. Support for ARC750 core
  79. config ARC_CPU_770
  80. bool "ARC770"
  81. select ARC_CPU_REL_4_10
  82. help
  83. Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
  84. This core has a bunch of cool new features:
  85. -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
  86. Shared Address Spaces (for sharing TLB entires in MMU)
  87. -Caches: New Prog Model, Region Flush
  88. -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
  89. endchoice
  90. config CPU_BIG_ENDIAN
  91. bool "Enable Big Endian Mode"
  92. default n
  93. help
  94. Build kernel for Big Endian Mode of ARC CPU
  95. menuconfig ARC_CACHE
  96. bool "Enable Cache Support"
  97. default y
  98. if ARC_CACHE
  99. config ARC_CACHE_LINE_SHIFT
  100. int "Cache Line Length (as power of 2)"
  101. range 5 7
  102. default "6"
  103. help
  104. Starting with ARC700 4.9, Cache line length is configurable,
  105. This option specifies "N", with Line-len = 2 power N
  106. So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
  107. Linux only supports same line lengths for I and D caches.
  108. config ARC_HAS_ICACHE
  109. bool "Use Instruction Cache"
  110. default y
  111. config ARC_HAS_DCACHE
  112. bool "Use Data Cache"
  113. default y
  114. config ARC_CACHE_PAGES
  115. bool "Per Page Cache Control"
  116. default y
  117. depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
  118. help
  119. This can be used to over-ride the global I/D Cache Enable on a
  120. per-page basis (but only for pages accessed via MMU such as
  121. Kernel Virtual address or User Virtual Address)
  122. TLB entries have a per-page Cache Enable Bit.
  123. Note that Global I/D ENABLE + Per Page DISABLE works but corollary
  124. Global DISABLE + Per Page ENABLE won't work
  125. endif #ARC_CACHE
  126. config ARC_HAS_HW_MPY
  127. bool "Use Hardware Multiplier (Normal or Faster XMAC)"
  128. default y
  129. help
  130. Influences how gcc generates code for MPY operations.
  131. If enabled, MPYxx insns are generated, provided by Standard/XMAC
  132. Multipler. Otherwise software multipy lib is used
  133. choice
  134. prompt "ARC700 MMU Version"
  135. default ARC_MMU_V3 if ARC_CPU_770
  136. default ARC_MMU_V2 if ARC_CPU_750D
  137. config ARC_MMU_V1
  138. bool "MMU v1"
  139. help
  140. Orig ARC700 MMU
  141. config ARC_MMU_V2
  142. bool "MMU v2"
  143. help
  144. Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
  145. when 2 D-TLB and 1 I-TLB entries index into same 2way set.
  146. config ARC_MMU_V3
  147. bool "MMU v3"
  148. depends on ARC_CPU_770
  149. help
  150. Introduced with ARC700 4.10: New Features
  151. Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
  152. Shared Address Spaces (SASID)
  153. endchoice
  154. choice
  155. prompt "MMU Page Size"
  156. default ARC_PAGE_SIZE_8K
  157. config ARC_PAGE_SIZE_8K
  158. bool "8KB"
  159. help
  160. Choose between 8k vs 16k
  161. config ARC_PAGE_SIZE_16K
  162. bool "16KB"
  163. depends on ARC_MMU_V3
  164. config ARC_PAGE_SIZE_4K
  165. bool "4KB"
  166. depends on ARC_MMU_V3
  167. endchoice
  168. config ARC_FPU_SAVE_RESTORE
  169. bool "Enable FPU state persistence across context switch"
  170. default n
  171. help
  172. Double Precision Floating Point unit had dedictaed regs which
  173. need to be saved/restored across context-switch.
  174. Note that ARC FPU is overly simplistic, unlike say x86, which has
  175. hardware pieces to allow software to conditionally save/restore,
  176. based on actual usage of FPU by a task. Thus our implemn does
  177. this for all tasks in system.
  178. menuconfig ARC_CPU_REL_4_10
  179. bool "Enable support for Rel 4.10 features"
  180. default n
  181. help
  182. -ARC770 (and dependent features) enabled
  183. -ARC750 also shares some of the new features with 770
  184. config ARC_HAS_LLSC
  185. bool "Insn: LLOCK/SCOND (efficient atomic ops)"
  186. default y
  187. depends on ARC_CPU_770
  188. # if SMP, enable LLSC ONLY if ARC implementation has coherent atomics
  189. depends on !SMP || ARC_HAS_COH_LLSC
  190. config ARC_HAS_SWAPE
  191. bool "Insn: SWAPE (endian-swap)"
  192. default y
  193. depends on ARC_CPU_REL_4_10
  194. config ARC_HAS_RTSC
  195. bool "Insn: RTSC (64-bit r/o cycle counter)"
  196. default y
  197. depends on ARC_CPU_REL_4_10
  198. endmenu # "ARC CPU Configuration"
  199. menu "Platform Board Configuration"
  200. source "arch/arc/plat-arcfpga/Kconfig"
  201. #New platform adds here
  202. config LINUX_LINK_BASE
  203. hex "Linux Link Address"
  204. default "0x80000000"
  205. help
  206. ARC700 divides the 32 bit phy address space into two equal halves
  207. -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
  208. -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
  209. Typically Linux kernel is linked at the start of untransalted addr,
  210. hence the default value of 0x8zs.
  211. However some customers have peripherals mapped at this addr, so
  212. Linux needs to be scooted a bit.
  213. If you don't know what the above means, leave this setting alone.
  214. endmenu # "Platform Board Configuration"
  215. config ARC_CURR_IN_REG
  216. bool "Dedicate Register r25 for current_task pointer"
  217. default y
  218. help
  219. This reserved Register R25 to point to Current Task in
  220. kernel mode. This saves memory access for each such access
  221. config ARC_STACK_NONEXEC
  222. bool "Make stack non-executable"
  223. default n
  224. help
  225. To disable the execute permissions of stack/heap of processes
  226. which are enabled by default.
  227. config HZ
  228. int "Timer Frequency"
  229. default 100
  230. menuconfig ARC_DBG
  231. bool "ARC debugging"
  232. default y
  233. config ARC_DBG_TLB_PARANOIA
  234. bool "Paranoia Checks in Low Level TLB Handlers"
  235. depends on ARC_DBG
  236. default n
  237. config ARC_DBG_TLB_MISS_COUNT
  238. bool "Profile TLB Misses"
  239. default n
  240. select DEBUG_FS
  241. depends on ARC_DBG
  242. help
  243. Counts number of I and D TLB Misses and exports them via Debugfs
  244. The counters can be cleared via Debugfs as well
  245. config CMDLINE
  246. string "Kernel command line to built-in"
  247. default "print-fatal-signals=1"
  248. help
  249. The default command line which will be appended to the optional
  250. u-boot provided command line (see below)
  251. config CMDLINE_UBOOT
  252. bool "Support U-boot kernel command line passing"
  253. default n
  254. help
  255. If you are using U-boot (www.denx.de) and wish to pass the kernel
  256. command line from the U-boot environment to the Linux kernel then
  257. switch this option on.
  258. ARC U-boot will setup the cmdline in RAM/flash and set r2 to point
  259. to it. kernel startup code will copy the string into cmdline buffer
  260. and also append CONFIG_CMDLINE.
  261. config ARC_BUILTIN_DTB_NAME
  262. string "Built in DTB"
  263. help
  264. Set the name of the DTB to embed in the vmlinux binary
  265. Leaving it blank selects the minimal "skeleton" dtb
  266. source "kernel/Kconfig.preempt"
  267. endmenu # "ARC Architecture Configuration"
  268. source "mm/Kconfig"
  269. source "net/Kconfig"
  270. source "drivers/Kconfig"
  271. source "fs/Kconfig"
  272. source "arch/arc/Kconfig.debug"
  273. source "security/Kconfig"
  274. source "crypto/Kconfig"
  275. source "lib/Kconfig"