Kconfig 8.0 KB

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