Kconfig 14 KB

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