Kconfig 15 KB

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