Kconfig 13 KB

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