Kconfig 7.9 KB

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