Kconfig 13 KB

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