Kconfig 14 KB

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