Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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 BUILDTIME_EXTABLE_SORT
  11. select COMMON_CLK
  12. select CLONE_BACKWARDS
  13. # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
  14. select DEVTMPFS if !INITRAMFS_SOURCE=""
  15. select GENERIC_ATOMIC64
  16. select GENERIC_CLOCKEVENTS
  17. select GENERIC_FIND_FIRST_BIT
  18. # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
  19. select GENERIC_IRQ_SHOW
  20. select GENERIC_PENDING_IRQ if SMP
  21. select GENERIC_SMP_IDLE_THREAD
  22. select HAVE_ARCH_KGDB
  23. select HAVE_ARCH_TRACEHOOK
  24. select HAVE_IOREMAP_PROT
  25. select HAVE_KPROBES
  26. select HAVE_KRETPROBES
  27. select HAVE_MEMBLOCK
  28. select HAVE_MOD_ARCH_SPECIFIC if ARC_DW2_UNWIND
  29. select HAVE_OPROFILE
  30. select HAVE_PERF_EVENTS
  31. select IRQ_DOMAIN
  32. select MODULES_USE_ELF_RELA
  33. select NO_BOOTMEM
  34. select OF
  35. select OF_EARLY_FLATTREE
  36. select PERF_USE_VMALLOC
  37. select HAVE_DEBUG_STACKOVERFLOW
  38. config TRACE_IRQFLAGS_SUPPORT
  39. def_bool y
  40. config LOCKDEP_SUPPORT
  41. def_bool y
  42. config SCHED_OMIT_FRAME_POINTER
  43. def_bool y
  44. config GENERIC_CSUM
  45. def_bool y
  46. config RWSEM_GENERIC_SPINLOCK
  47. def_bool y
  48. config ARCH_FLATMEM_ENABLE
  49. def_bool y
  50. config MMU
  51. def_bool y
  52. config NO_IOPORT_MAP
  53. def_bool y
  54. config GENERIC_CALIBRATE_DELAY
  55. def_bool y
  56. config GENERIC_HWEIGHT
  57. def_bool y
  58. config STACKTRACE_SUPPORT
  59. def_bool y
  60. select STACKTRACE
  61. config HAVE_LATENCYTOP_SUPPORT
  62. def_bool y
  63. source "init/Kconfig"
  64. source "kernel/Kconfig.freezer"
  65. menu "ARC Architecture Configuration"
  66. menu "ARC Platform/SoC/Board"
  67. source "arch/arc/plat-sim/Kconfig"
  68. source "arch/arc/plat-tb10x/Kconfig"
  69. source "arch/arc/plat-axs10x/Kconfig"
  70. #New platform adds here
  71. endmenu
  72. choice
  73. prompt "ARC Instruction Set"
  74. default ISA_ARCOMPACT
  75. config ISA_ARCOMPACT
  76. bool "ARCompact ISA"
  77. help
  78. The original ARC ISA of ARC600/700 cores
  79. config ISA_ARCV2
  80. bool "ARC ISA v2"
  81. help
  82. ISA for the Next Generation ARC-HS cores
  83. endchoice
  84. menu "ARC CPU Configuration"
  85. choice
  86. prompt "ARC Core"
  87. default ARC_CPU_770 if ISA_ARCOMPACT
  88. default ARC_CPU_HS if ISA_ARCV2
  89. if ISA_ARCOMPACT
  90. config ARC_CPU_750D
  91. bool "ARC750D"
  92. help
  93. Support for ARC750 core
  94. config ARC_CPU_770
  95. bool "ARC770"
  96. select ARC_HAS_SWAPE
  97. help
  98. Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
  99. This core has a bunch of cool new features:
  100. -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
  101. Shared Address Spaces (for sharing TLB entires in MMU)
  102. -Caches: New Prog Model, Region Flush
  103. -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
  104. endif #ISA_ARCOMPACT
  105. config ARC_CPU_HS
  106. bool "ARC-HS"
  107. depends on ISA_ARCV2
  108. help
  109. Support for ARC HS38x Cores based on ARCv2 ISA
  110. The notable features are:
  111. - SMP configurations of upto 4 core with coherency
  112. - Optional L2 Cache and IO-Coherency
  113. - Revised Interrupt Architecture (multiple priorites, reg banks,
  114. auto stack switch, auto regfile save/restore)
  115. - MMUv4 (PIPT dcache, Huge Pages)
  116. - Instructions for
  117. * 64bit load/store: LDD, STD
  118. * Hardware assisted divide/remainder: DIV, REM
  119. * Function prologue/epilogue: ENTER_S, LEAVE_S
  120. * IRQ enable/disable: CLRI, SETI
  121. * pop count: FFS, FLS
  122. * SETcc, BMSKN, XBFU...
  123. endchoice
  124. config CPU_BIG_ENDIAN
  125. bool "Enable Big Endian Mode"
  126. default n
  127. help
  128. Build kernel for Big Endian Mode of ARC CPU
  129. config SMP
  130. bool "Symmetric Multi-Processing"
  131. default n
  132. select ARC_HAS_COH_CACHES if ISA_ARCV2
  133. select ARC_MCIP if ISA_ARCV2
  134. help
  135. This enables support for systems with more than one CPU.
  136. if SMP
  137. config ARC_HAS_COH_CACHES
  138. def_bool n
  139. config ARC_HAS_REENTRANT_IRQ_LV2
  140. def_bool n
  141. config ARC_MCIP
  142. bool "ARConnect Multicore IP (MCIP) Support "
  143. depends on ISA_ARCV2
  144. help
  145. This IP block enables SMP in ARC-HS38 cores.
  146. It provides for cross-core interrupts, multi-core debug
  147. hardware semaphores, shared memory,....
  148. config NR_CPUS
  149. int "Maximum number of CPUs (2-4096)"
  150. range 2 4096
  151. default "4"
  152. endif #SMP
  153. menuconfig ARC_CACHE
  154. bool "Enable Cache Support"
  155. default y
  156. # if SMP, cache enabled ONLY if ARC implementation has cache coherency
  157. depends on !SMP || ARC_HAS_COH_CACHES
  158. if ARC_CACHE
  159. config ARC_CACHE_LINE_SHIFT
  160. int "Cache Line Length (as power of 2)"
  161. range 5 7
  162. default "6"
  163. help
  164. Starting with ARC700 4.9, Cache line length is configurable,
  165. This option specifies "N", with Line-len = 2 power N
  166. So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
  167. Linux only supports same line lengths for I and D caches.
  168. config ARC_HAS_ICACHE
  169. bool "Use Instruction Cache"
  170. default y
  171. config ARC_HAS_DCACHE
  172. bool "Use Data Cache"
  173. default y
  174. config ARC_CACHE_PAGES
  175. bool "Per Page Cache Control"
  176. default y
  177. depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
  178. help
  179. This can be used to over-ride the global I/D Cache Enable on a
  180. per-page basis (but only for pages accessed via MMU such as
  181. Kernel Virtual address or User Virtual Address)
  182. TLB entries have a per-page Cache Enable Bit.
  183. Note that Global I/D ENABLE + Per Page DISABLE works but corollary
  184. Global DISABLE + Per Page ENABLE won't work
  185. config ARC_CACHE_VIPT_ALIASING
  186. bool "Support VIPT Aliasing D$"
  187. depends on ARC_HAS_DCACHE && ISA_ARCOMPACT
  188. default n
  189. endif #ARC_CACHE
  190. config ARC_HAS_ICCM
  191. bool "Use ICCM"
  192. help
  193. Single Cycle RAMS to store Fast Path Code
  194. default n
  195. config ARC_ICCM_SZ
  196. int "ICCM Size in KB"
  197. default "64"
  198. depends on ARC_HAS_ICCM
  199. config ARC_HAS_DCCM
  200. bool "Use DCCM"
  201. help
  202. Single Cycle RAMS to store Fast Path Data
  203. default n
  204. config ARC_DCCM_SZ
  205. int "DCCM Size in KB"
  206. default "64"
  207. depends on ARC_HAS_DCCM
  208. config ARC_DCCM_BASE
  209. hex "DCCM map address"
  210. default "0xA0000000"
  211. depends on ARC_HAS_DCCM
  212. config ARC_HAS_HW_MPY
  213. bool "Use Hardware Multiplier (Normal or Faster XMAC)"
  214. default y
  215. help
  216. Influences how gcc generates code for MPY operations.
  217. If enabled, MPYxx insns are generated, provided by Standard/XMAC
  218. Multipler. Otherwise software multipy lib is used
  219. choice
  220. prompt "MMU Version"
  221. default ARC_MMU_V3 if ARC_CPU_770
  222. default ARC_MMU_V2 if ARC_CPU_750D
  223. default ARC_MMU_V4 if ARC_CPU_HS
  224. config ARC_MMU_V1
  225. bool "MMU v1"
  226. help
  227. Orig ARC700 MMU
  228. config ARC_MMU_V2
  229. bool "MMU v2"
  230. help
  231. Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
  232. when 2 D-TLB and 1 I-TLB entries index into same 2way set.
  233. config ARC_MMU_V3
  234. bool "MMU v3"
  235. depends on ARC_CPU_770
  236. help
  237. Introduced with ARC700 4.10: New Features
  238. Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
  239. Shared Address Spaces (SASID)
  240. config ARC_MMU_V4
  241. bool "MMU v4"
  242. depends on ISA_ARCV2
  243. endchoice
  244. choice
  245. prompt "MMU Page Size"
  246. default ARC_PAGE_SIZE_8K
  247. config ARC_PAGE_SIZE_8K
  248. bool "8KB"
  249. help
  250. Choose between 8k vs 16k
  251. config ARC_PAGE_SIZE_16K
  252. bool "16KB"
  253. depends on ARC_MMU_V3
  254. config ARC_PAGE_SIZE_4K
  255. bool "4KB"
  256. depends on ARC_MMU_V3
  257. endchoice
  258. if ISA_ARCOMPACT
  259. config ARC_COMPACT_IRQ_LEVELS
  260. bool "ARCompact IRQ Priorities: High(2)/Low(1)"
  261. default n
  262. # Timer HAS to be high priority, for any other high priority config
  263. select ARC_IRQ3_LV2
  264. # if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
  265. depends on !SMP || ARC_HAS_REENTRANT_IRQ_LV2
  266. if ARC_COMPACT_IRQ_LEVELS
  267. config ARC_IRQ3_LV2
  268. bool
  269. config ARC_IRQ5_LV2
  270. bool
  271. config ARC_IRQ6_LV2
  272. bool
  273. endif #ARC_COMPACT_IRQ_LEVELS
  274. config ARC_FPU_SAVE_RESTORE
  275. bool "Enable FPU state persistence across context switch"
  276. default n
  277. help
  278. Double Precision Floating Point unit had dedictaed regs which
  279. need to be saved/restored across context-switch.
  280. Note that ARC FPU is overly simplistic, unlike say x86, which has
  281. hardware pieces to allow software to conditionally save/restore,
  282. based on actual usage of FPU by a task. Thus our implemn does
  283. this for all tasks in system.
  284. endif #ISA_ARCOMPACT
  285. config ARC_CANT_LLSC
  286. def_bool n
  287. config ARC_HAS_LLSC
  288. bool "Insn: LLOCK/SCOND (efficient atomic ops)"
  289. default y
  290. depends on !ARC_CPU_750D && !ARC_CANT_LLSC
  291. config ARC_HAS_SWAPE
  292. bool "Insn: SWAPE (endian-swap)"
  293. default y
  294. if ISA_ARCV2
  295. config ARC_HAS_LL64
  296. bool "Insn: 64bit LDD/STD"
  297. help
  298. Enable gcc to generate 64-bit load/store instructions
  299. ISA mandates even/odd registers to allow encoding of two
  300. dest operands with 2 possible source operands.
  301. default y
  302. config ARC_HAS_RTC
  303. bool "Local 64-bit r/o cycle counter"
  304. default n
  305. depends on !SMP
  306. config ARC_HAS_GRTC
  307. bool "SMP synchronized 64-bit cycle counter"
  308. default y
  309. depends on SMP
  310. config ARC_NUMBER_OF_INTERRUPTS
  311. int "Number of interrupts"
  312. range 8 240
  313. default 32
  314. help
  315. This defines the number of interrupts on the ARCv2HS core.
  316. It affects the size of vector table.
  317. The initial 8 IRQs are fixed (Timer, ICI etc) and although configurable
  318. in hardware, it keep things simple for Linux to assume they are always
  319. present.
  320. endif # ISA_ARCV2
  321. endmenu # "ARC CPU Configuration"
  322. config LINUX_LINK_BASE
  323. hex "Linux Link Address"
  324. default "0x80000000"
  325. help
  326. ARC700 divides the 32 bit phy address space into two equal halves
  327. -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
  328. -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
  329. Typically Linux kernel is linked at the start of untransalted addr,
  330. hence the default value of 0x8zs.
  331. However some customers have peripherals mapped at this addr, so
  332. Linux needs to be scooted a bit.
  333. If you don't know what the above means, leave this setting alone.
  334. config ARC_CURR_IN_REG
  335. bool "Dedicate Register r25 for current_task pointer"
  336. default y
  337. help
  338. This reserved Register R25 to point to Current Task in
  339. kernel mode. This saves memory access for each such access
  340. config ARC_EMUL_UNALIGNED
  341. bool "Emulate unaligned memory access (userspace only)"
  342. default N
  343. select SYSCTL_ARCH_UNALIGN_NO_WARN
  344. select SYSCTL_ARCH_UNALIGN_ALLOW
  345. depends on ISA_ARCOMPACT
  346. help
  347. This enables misaligned 16 & 32 bit memory access from user space.
  348. Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
  349. potential bugs in code
  350. config HZ
  351. int "Timer Frequency"
  352. default 100
  353. config ARC_METAWARE_HLINK
  354. bool "Support for Metaware debugger assisted Host access"
  355. default n
  356. help
  357. This options allows a Linux userland apps to directly access
  358. host file system (open/creat/read/write etc) with help from
  359. Metaware Debugger. This can come in handy for Linux-host communication
  360. when there is no real usable peripheral such as EMAC.
  361. menuconfig ARC_DBG
  362. bool "ARC debugging"
  363. default y
  364. if ARC_DBG
  365. config ARC_DW2_UNWIND
  366. bool "Enable DWARF specific kernel stack unwind"
  367. default y
  368. select KALLSYMS
  369. help
  370. Compiles the kernel with DWARF unwind information and can be used
  371. to get stack backtraces.
  372. If you say Y here the resulting kernel image will be slightly larger
  373. but not slower, and it will give very useful debugging information.
  374. If you don't debug the kernel, you can say N, but we may not be able
  375. to solve problems without frame unwind information
  376. config ARC_DBG_TLB_PARANOIA
  377. bool "Paranoia Checks in Low Level TLB Handlers"
  378. default n
  379. config ARC_DBG_TLB_MISS_COUNT
  380. bool "Profile TLB Misses"
  381. default n
  382. select DEBUG_FS
  383. help
  384. Counts number of I and D TLB Misses and exports them via Debugfs
  385. The counters can be cleared via Debugfs as well
  386. if SMP
  387. config ARC_IPI_DBG
  388. bool "Debug Inter Core interrupts"
  389. default n
  390. endif
  391. endif
  392. config ARC_UBOOT_SUPPORT
  393. bool "Support uboot arg Handling"
  394. default n
  395. help
  396. ARC Linux by default checks for uboot provided args as pointers to
  397. external cmdline or DTB. This however breaks in absence of uboot,
  398. when booting from Metaware debugger directly, as the registers are
  399. not zeroed out on reset by mdb and/or ARCv2 based cores. The bogus
  400. registers look like uboot args to kernel which then chokes.
  401. So only enable the uboot arg checking/processing if users are sure
  402. of uboot being in play.
  403. config ARC_BUILTIN_DTB_NAME
  404. string "Built in DTB"
  405. help
  406. Set the name of the DTB to embed in the vmlinux binary
  407. Leaving it blank selects the minimal "skeleton" dtb
  408. source "kernel/Kconfig.preempt"
  409. menu "Executable file formats"
  410. source "fs/Kconfig.binfmt"
  411. endmenu
  412. endmenu # "ARC Architecture Configuration"
  413. source "mm/Kconfig"
  414. source "net/Kconfig"
  415. source "drivers/Kconfig"
  416. source "fs/Kconfig"
  417. source "arch/arc/Kconfig.debug"
  418. source "security/Kconfig"
  419. source "crypto/Kconfig"
  420. source "lib/Kconfig"
  421. source "kernel/power/Kconfig"