Kconfig 14 KB

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