Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. # SPDX-License-Identifier: GPL-2.0
  2. config ZONE_DMA
  3. def_bool y
  4. config XTENSA
  5. def_bool y
  6. select ARCH_NO_COHERENT_DMA_MMAP if !MMU
  7. select ARCH_WANT_FRAME_POINTERS
  8. select ARCH_WANT_IPC_PARSE_VERSION
  9. select BUILDTIME_EXTABLE_SORT
  10. select CLONE_BACKWARDS
  11. select COMMON_CLK
  12. select GENERIC_ATOMIC64
  13. select GENERIC_CLOCKEVENTS
  14. select GENERIC_IRQ_SHOW
  15. select GENERIC_PCI_IOMAP
  16. select GENERIC_SCHED_CLOCK
  17. select GENERIC_STRNCPY_FROM_USER if KASAN
  18. select HAVE_ARCH_KASAN if MMU
  19. select HAVE_DEBUG_KMEMLEAK
  20. select HAVE_DMA_CONTIGUOUS
  21. select HAVE_EXIT_THREAD
  22. select HAVE_FUNCTION_TRACER
  23. select HAVE_FUTEX_CMPXCHG if !MMU
  24. select HAVE_HW_BREAKPOINT if PERF_EVENTS
  25. select HAVE_IRQ_TIME_ACCOUNTING
  26. select HAVE_MEMBLOCK
  27. select HAVE_OPROFILE
  28. select HAVE_PERF_EVENTS
  29. select HAVE_STACKPROTECTOR
  30. select IRQ_DOMAIN
  31. select MODULES_USE_ELF_RELA
  32. select NO_BOOTMEM
  33. select PERF_USE_VMALLOC
  34. select VIRT_TO_BUS
  35. help
  36. Xtensa processors are 32-bit RISC machines designed by Tensilica
  37. primarily for embedded systems. These processors are both
  38. configurable and extensible. The Linux port to the Xtensa
  39. architecture supports all processor configurations and extensions,
  40. with reasonable minimum requirements. The Xtensa Linux project has
  41. a home page at <http://www.linux-xtensa.org/>.
  42. config RWSEM_XCHGADD_ALGORITHM
  43. def_bool y
  44. config GENERIC_HWEIGHT
  45. def_bool y
  46. config ARCH_HAS_ILOG2_U32
  47. def_bool n
  48. config ARCH_HAS_ILOG2_U64
  49. def_bool n
  50. config NO_IOPORT_MAP
  51. def_bool n
  52. config HZ
  53. int
  54. default 100
  55. source "init/Kconfig"
  56. source "kernel/Kconfig.freezer"
  57. config LOCKDEP_SUPPORT
  58. def_bool y
  59. config STACKTRACE_SUPPORT
  60. def_bool y
  61. config TRACE_IRQFLAGS_SUPPORT
  62. def_bool y
  63. config MMU
  64. def_bool n
  65. config HAVE_XTENSA_GPIO32
  66. def_bool n
  67. config KASAN_SHADOW_OFFSET
  68. hex
  69. default 0x6e400000
  70. menu "Processor type and features"
  71. choice
  72. prompt "Xtensa Processor Configuration"
  73. default XTENSA_VARIANT_FSF
  74. config XTENSA_VARIANT_FSF
  75. bool "fsf - default (not generic) configuration"
  76. select MMU
  77. config XTENSA_VARIANT_DC232B
  78. bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
  79. select MMU
  80. select HAVE_XTENSA_GPIO32
  81. help
  82. This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
  83. config XTENSA_VARIANT_DC233C
  84. bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
  85. select MMU
  86. select HAVE_XTENSA_GPIO32
  87. help
  88. This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
  89. config XTENSA_VARIANT_CUSTOM
  90. bool "Custom Xtensa processor configuration"
  91. select HAVE_XTENSA_GPIO32
  92. help
  93. Select this variant to use a custom Xtensa processor configuration.
  94. You will be prompted for a processor variant CORENAME.
  95. endchoice
  96. config XTENSA_VARIANT_CUSTOM_NAME
  97. string "Xtensa Processor Custom Core Variant Name"
  98. depends on XTENSA_VARIANT_CUSTOM
  99. help
  100. Provide the name of a custom Xtensa processor variant.
  101. This CORENAME selects arch/xtensa/variant/CORENAME.
  102. Dont forget you have to select MMU if you have one.
  103. config XTENSA_VARIANT_NAME
  104. string
  105. default "dc232b" if XTENSA_VARIANT_DC232B
  106. default "dc233c" if XTENSA_VARIANT_DC233C
  107. default "fsf" if XTENSA_VARIANT_FSF
  108. default XTENSA_VARIANT_CUSTOM_NAME if XTENSA_VARIANT_CUSTOM
  109. config XTENSA_VARIANT_MMU
  110. bool "Core variant has a Full MMU (TLB, Pages, Protection, etc)"
  111. depends on XTENSA_VARIANT_CUSTOM
  112. default y
  113. select MMU
  114. help
  115. Build a Conventional Kernel with full MMU support,
  116. ie: it supports a TLB with auto-loading, page protection.
  117. config XTENSA_VARIANT_HAVE_PERF_EVENTS
  118. bool "Core variant has Performance Monitor Module"
  119. depends on XTENSA_VARIANT_CUSTOM
  120. default n
  121. help
  122. Enable if core variant has Performance Monitor Module with
  123. External Registers Interface.
  124. If unsure, say N.
  125. config XTENSA_FAKE_NMI
  126. bool "Treat PMM IRQ as NMI"
  127. depends on XTENSA_VARIANT_HAVE_PERF_EVENTS
  128. default n
  129. help
  130. If PMM IRQ is the only IRQ at EXCM level it is safe to
  131. treat it as NMI, which improves accuracy of profiling.
  132. If there are other interrupts at or above PMM IRQ priority level
  133. but not above the EXCM level, PMM IRQ still may be treated as NMI,
  134. but only if these IRQs are not used. There will be a build warning
  135. saying that this is not safe, and a bugcheck if one of these IRQs
  136. actually fire.
  137. If unsure, say N.
  138. config XTENSA_UNALIGNED_USER
  139. bool "Unaligned memory access in use space"
  140. help
  141. The Xtensa architecture currently does not handle unaligned
  142. memory accesses in hardware but through an exception handler.
  143. Per default, unaligned memory accesses are disabled in user space.
  144. Say Y here to enable unaligned memory access in user space.
  145. source "kernel/Kconfig.preempt"
  146. config HAVE_SMP
  147. bool "System Supports SMP (MX)"
  148. depends on XTENSA_VARIANT_CUSTOM
  149. select XTENSA_MX
  150. help
  151. This option is use to indicate that the system-on-a-chip (SOC)
  152. supports Multiprocessing. Multiprocessor support implemented above
  153. the CPU core definition and currently needs to be selected manually.
  154. Multiprocessor support in implemented with external cache and
  155. interrupt controllers.
  156. The MX interrupt distributer adds Interprocessor Interrupts
  157. and causes the IRQ numbers to be increased by 4 for devices
  158. like the open cores ethernet driver and the serial interface.
  159. You still have to select "Enable SMP" to enable SMP on this SOC.
  160. config SMP
  161. bool "Enable Symmetric multi-processing support"
  162. depends on HAVE_SMP
  163. select GENERIC_SMP_IDLE_THREAD
  164. help
  165. Enabled SMP Software; allows more than one CPU/CORE
  166. to be activated during startup.
  167. config NR_CPUS
  168. depends on SMP
  169. int "Maximum number of CPUs (2-32)"
  170. range 2 32
  171. default "4"
  172. config HOTPLUG_CPU
  173. bool "Enable CPU hotplug support"
  174. depends on SMP
  175. help
  176. Say Y here to allow turning CPUs off and on. CPUs can be
  177. controlled through /sys/devices/system/cpu.
  178. Say N if you want to disable CPU hotplug.
  179. config INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  180. bool "Initialize Xtensa MMU inside the Linux kernel code"
  181. depends on !XTENSA_VARIANT_FSF && !XTENSA_VARIANT_DC232B
  182. default y if XTENSA_VARIANT_DC233C || XTENSA_VARIANT_CUSTOM
  183. help
  184. Earlier version initialized the MMU in the exception vector
  185. before jumping to _startup in head.S and had an advantage that
  186. it was possible to place a software breakpoint at 'reset' and
  187. then enter your normal kernel breakpoints once the MMU was mapped
  188. to the kernel mappings (0XC0000000).
  189. This unfortunately won't work for U-Boot and likely also wont
  190. work for using KEXEC to have a hot kernel ready for doing a
  191. KDUMP.
  192. So now the MMU is initialized in head.S but it's necessary to
  193. use hardware breakpoints (gdb 'hbreak' cmd) to break at _startup.
  194. xt-gdb can't place a Software Breakpoint in the 0XD region prior
  195. to mapping the MMU and after mapping even if the area of low memory
  196. was mapped gdb wouldn't remove the breakpoint on hitting it as the
  197. PC wouldn't match. Since Hardware Breakpoints are recommended for
  198. Linux configurations it seems reasonable to just assume they exist
  199. and leave this older mechanism for unfortunate souls that choose
  200. not to follow Tensilica's recommendation.
  201. Selecting this will cause U-Boot to set the KERNEL Load and Entry
  202. address at 0x00003000 instead of the mapped std of 0xD0003000.
  203. If in doubt, say Y.
  204. config MEMMAP_CACHEATTR
  205. hex "Cache attributes for the memory address space"
  206. depends on !MMU
  207. default 0x22222222
  208. help
  209. These cache attributes are set up for noMMU systems. Each hex digit
  210. specifies cache attributes for the corresponding 512MB memory
  211. region: bits 0..3 -- for addresses 0x00000000..0x1fffffff,
  212. bits 4..7 -- for addresses 0x20000000..0x3fffffff, and so on.
  213. Cache attribute values are specific for the MMU type, so e.g.
  214. for region protection MMUs: 2 is cache bypass, 4 is WB cached,
  215. 1 is WT cached, f is illegal. For ful MMU: bit 0 makes it executable,
  216. bit 1 makes it writable, bits 2..3 meaning is 0: cache bypass,
  217. 1: WB cache, 2: WT cache, 3: special (c and e are illegal, f is
  218. reserved).
  219. config KSEG_PADDR
  220. hex "Physical address of the KSEG mapping"
  221. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX && MMU
  222. default 0x00000000
  223. help
  224. This is the physical address where KSEG is mapped. Please refer to
  225. the chosen KSEG layout help for the required address alignment.
  226. Unpacked kernel image (including vectors) must be located completely
  227. within KSEG.
  228. Physical memory below this address is not available to linux.
  229. If unsure, leave the default value here.
  230. config KERNEL_LOAD_ADDRESS
  231. hex "Kernel load address"
  232. default 0x60003000 if !MMU
  233. default 0x00003000 if MMU && INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  234. default 0xd0003000 if MMU && !INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  235. help
  236. This is the address where the kernel is loaded.
  237. It is virtual address for MMUv2 configurations and physical address
  238. for all other configurations.
  239. If unsure, leave the default value here.
  240. config VECTORS_OFFSET
  241. hex "Kernel vectors offset"
  242. default 0x00003000
  243. help
  244. This is the offset of the kernel image from the relocatable vectors
  245. base.
  246. If unsure, leave the default value here.
  247. choice
  248. prompt "KSEG layout"
  249. depends on MMU
  250. default XTENSA_KSEG_MMU_V2
  251. config XTENSA_KSEG_MMU_V2
  252. bool "MMUv2: 128MB cached + 128MB uncached"
  253. help
  254. MMUv2 compatible kernel memory map: TLB way 5 maps 128MB starting
  255. at KSEG_PADDR to 0xd0000000 with cache and to 0xd8000000
  256. without cache.
  257. KSEG_PADDR must be aligned to 128MB.
  258. config XTENSA_KSEG_256M
  259. bool "256MB cached + 256MB uncached"
  260. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  261. help
  262. TLB way 6 maps 256MB starting at KSEG_PADDR to 0xb0000000
  263. with cache and to 0xc0000000 without cache.
  264. KSEG_PADDR must be aligned to 256MB.
  265. config XTENSA_KSEG_512M
  266. bool "512MB cached + 512MB uncached"
  267. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  268. help
  269. TLB way 6 maps 512MB starting at KSEG_PADDR to 0xa0000000
  270. with cache and to 0xc0000000 without cache.
  271. KSEG_PADDR must be aligned to 256MB.
  272. endchoice
  273. config HIGHMEM
  274. bool "High Memory Support"
  275. depends on MMU
  276. help
  277. Linux can use the full amount of RAM in the system by
  278. default. However, the default MMUv2 setup only maps the
  279. lowermost 128 MB of memory linearly to the areas starting
  280. at 0xd0000000 (cached) and 0xd8000000 (uncached).
  281. When there are more than 128 MB memory in the system not
  282. all of it can be "permanently mapped" by the kernel.
  283. The physical memory that's not permanently mapped is called
  284. "high memory".
  285. If you are compiling a kernel which will never run on a
  286. machine with more than 128 MB total physical RAM, answer
  287. N here.
  288. If unsure, say Y.
  289. config FAST_SYSCALL_XTENSA
  290. bool "Enable fast atomic syscalls"
  291. default n
  292. help
  293. fast_syscall_xtensa is a syscall that can make atomic operations
  294. on UP kernel when processor has no s32c1i support.
  295. This syscall is deprecated. It may have issues when called with
  296. invalid arguments. It is provided only for backwards compatibility.
  297. Only enable it if your userspace software requires it.
  298. If unsure, say N.
  299. config FAST_SYSCALL_SPILL_REGISTERS
  300. bool "Enable spill registers syscall"
  301. default n
  302. help
  303. fast_syscall_spill_registers is a syscall that spills all active
  304. register windows of a calling userspace task onto its stack.
  305. This syscall is deprecated. It may have issues when called with
  306. invalid arguments. It is provided only for backwards compatibility.
  307. Only enable it if your userspace software requires it.
  308. If unsure, say N.
  309. endmenu
  310. config XTENSA_CALIBRATE_CCOUNT
  311. def_bool n
  312. help
  313. On some platforms (XT2000, for example), the CPU clock rate can
  314. vary. The frequency can be determined, however, by measuring
  315. against a well known, fixed frequency, such as an UART oscillator.
  316. config SERIAL_CONSOLE
  317. def_bool n
  318. menu "Bus options"
  319. config PCI
  320. bool "PCI support"
  321. default y
  322. help
  323. Find out whether you have a PCI motherboard. PCI is the name of a
  324. bus system, i.e. the way the CPU talks to the other stuff inside
  325. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  326. VESA. If you have PCI, say Y, otherwise N.
  327. source "drivers/pci/Kconfig"
  328. endmenu
  329. menu "Platform options"
  330. choice
  331. prompt "Xtensa System Type"
  332. default XTENSA_PLATFORM_ISS
  333. config XTENSA_PLATFORM_ISS
  334. bool "ISS"
  335. select XTENSA_CALIBRATE_CCOUNT
  336. select SERIAL_CONSOLE
  337. help
  338. ISS is an acronym for Tensilica's Instruction Set Simulator.
  339. config XTENSA_PLATFORM_XT2000
  340. bool "XT2000"
  341. select HAVE_IDE
  342. help
  343. XT2000 is the name of Tensilica's feature-rich emulation platform.
  344. This hardware is capable of running a full Linux distribution.
  345. config XTENSA_PLATFORM_XTFPGA
  346. bool "XTFPGA"
  347. select ETHOC if ETHERNET
  348. select PLATFORM_WANT_DEFAULT_MEM if !MMU
  349. select SERIAL_CONSOLE
  350. select XTENSA_CALIBRATE_CCOUNT
  351. help
  352. XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
  353. This hardware is capable of running a full Linux distribution.
  354. endchoice
  355. config PLATFORM_NR_IRQS
  356. int
  357. default 3 if XTENSA_PLATFORM_XT2000
  358. default 0
  359. config XTENSA_CPU_CLOCK
  360. int "CPU clock rate [MHz]"
  361. depends on !XTENSA_CALIBRATE_CCOUNT
  362. default 16
  363. config GENERIC_CALIBRATE_DELAY
  364. bool "Auto calibration of the BogoMIPS value"
  365. help
  366. The BogoMIPS value can easily be derived from the CPU frequency.
  367. config CMDLINE_BOOL
  368. bool "Default bootloader kernel arguments"
  369. config CMDLINE
  370. string "Initial kernel command string"
  371. depends on CMDLINE_BOOL
  372. default "console=ttyS0,38400 root=/dev/ram"
  373. help
  374. On some architectures (EBSA110 and CATS), there is currently no way
  375. for the boot loader to pass arguments to the kernel. For these
  376. architectures, you should supply some command-line options at build
  377. time by entering them here. As a minimum, you should specify the
  378. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  379. config USE_OF
  380. bool "Flattened Device Tree support"
  381. select OF
  382. select OF_EARLY_FLATTREE
  383. select OF_RESERVED_MEM
  384. help
  385. Include support for flattened device tree machine descriptions.
  386. config BUILTIN_DTB
  387. string "DTB to build into the kernel image"
  388. depends on OF
  389. config PARSE_BOOTPARAM
  390. bool "Parse bootparam block"
  391. default y
  392. help
  393. Parse parameters passed to the kernel from the bootloader. It may
  394. be disabled if the kernel is known to run without the bootloader.
  395. If unsure, say Y.
  396. config BLK_DEV_SIMDISK
  397. tristate "Host file-based simulated block device support"
  398. default n
  399. depends on XTENSA_PLATFORM_ISS && BLOCK
  400. help
  401. Create block devices that map to files in the host file system.
  402. Device binding to host file may be changed at runtime via proc
  403. interface provided the device is not in use.
  404. config BLK_DEV_SIMDISK_COUNT
  405. int "Number of host file-based simulated block devices"
  406. range 1 10
  407. depends on BLK_DEV_SIMDISK
  408. default 2
  409. help
  410. This is the default minimal number of created block devices.
  411. Kernel/module parameter 'simdisk_count' may be used to change this
  412. value at runtime. More file names (but no more than 10) may be
  413. specified as parameters, simdisk_count grows accordingly.
  414. config SIMDISK0_FILENAME
  415. string "Host filename for the first simulated device"
  416. depends on BLK_DEV_SIMDISK = y
  417. default ""
  418. help
  419. Attach a first simdisk to a host file. Conventionally, this file
  420. contains a root file system.
  421. config SIMDISK1_FILENAME
  422. string "Host filename for the second simulated device"
  423. depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
  424. default ""
  425. help
  426. Another simulated disk in a host file for a buildroot-independent
  427. storage.
  428. source "mm/Kconfig"
  429. config FORCE_MAX_ZONEORDER
  430. int "Maximum zone order"
  431. default "11"
  432. help
  433. The kernel memory allocator divides physically contiguous memory
  434. blocks into "zones", where each zone is a power of two number of
  435. pages. This option selects the largest power of two that the kernel
  436. keeps in the memory allocator. If you need to allocate very large
  437. blocks of physically contiguous memory, then you may need to
  438. increase this value.
  439. This config option is actually maximum order plus one. For example,
  440. a value of 11 means that the largest free memory block is 2^10 pages.
  441. source "drivers/pcmcia/Kconfig"
  442. config PLATFORM_WANT_DEFAULT_MEM
  443. def_bool n
  444. config DEFAULT_MEM_START
  445. hex
  446. prompt "PAGE_OFFSET/PHYS_OFFSET" if !MMU && PLATFORM_WANT_DEFAULT_MEM
  447. default 0x60000000 if PLATFORM_WANT_DEFAULT_MEM
  448. default 0x00000000
  449. help
  450. This is the base address used for both PAGE_OFFSET and PHYS_OFFSET
  451. in noMMU configurations.
  452. If unsure, leave the default value here.
  453. config XTFPGA_LCD
  454. bool "Enable XTFPGA LCD driver"
  455. depends on XTENSA_PLATFORM_XTFPGA
  456. default n
  457. help
  458. There's a 2x16 LCD on most of XTFPGA boards, kernel may output
  459. progress messages there during bootup/shutdown. It may be useful
  460. during board bringup.
  461. If unsure, say N.
  462. config XTFPGA_LCD_BASE_ADDR
  463. hex "XTFPGA LCD base address"
  464. depends on XTFPGA_LCD
  465. default "0x0d0c0000"
  466. help
  467. Base address of the LCD controller inside KIO region.
  468. Different boards from XTFPGA family have LCD controller at different
  469. addresses. Please consult prototyping user guide for your board for
  470. the correct address. Wrong address here may lead to hardware lockup.
  471. config XTFPGA_LCD_8BIT_ACCESS
  472. bool "Use 8-bit access to XTFPGA LCD"
  473. depends on XTFPGA_LCD
  474. default n
  475. help
  476. LCD may be connected with 4- or 8-bit interface, 8-bit access may
  477. only be used with 8-bit interface. Please consult prototyping user
  478. guide for your board for the correct interface width.
  479. endmenu
  480. menu "Executable file formats"
  481. source "fs/Kconfig.binfmt"
  482. endmenu
  483. menu "Power management options"
  484. source "kernel/power/Kconfig"
  485. endmenu
  486. source "net/Kconfig"
  487. source "drivers/Kconfig"
  488. source "fs/Kconfig"
  489. source "arch/xtensa/Kconfig.debug"
  490. source "security/Kconfig"
  491. source "crypto/Kconfig"
  492. source "lib/Kconfig"