Kconfig 14 KB

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