Kconfig 14 KB

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