Kconfig 14 KB

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