Kconfig 13 KB

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