Kconfig 7.9 KB

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