Kconfig 14 KB

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