Kconfig 17 KB

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