Kconfig 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. config FRAME_POINTER
  2. def_bool n
  3. config ZONE_DMA
  4. def_bool y
  5. config XTENSA
  6. def_bool y
  7. select HAVE_IDE
  8. select GENERIC_ATOMIC64
  9. select HAVE_GENERIC_HARDIRQS
  10. select VIRT_TO_BUS
  11. select GENERIC_IRQ_SHOW
  12. select GENERIC_CPU_DEVICES
  13. select MODULES_USE_ELF_RELA
  14. select GENERIC_PCI_IOMAP
  15. select ARCH_WANT_IPC_PARSE_VERSION
  16. select ARCH_WANT_OPTIONAL_GPIOLIB
  17. select CLONE_BACKWARDS
  18. select IRQ_DOMAIN
  19. select HAVE_OPROFILE
  20. help
  21. Xtensa processors are 32-bit RISC machines designed by Tensilica
  22. primarily for embedded systems. These processors are both
  23. configurable and extensible. The Linux port to the Xtensa
  24. architecture supports all processor configurations and extensions,
  25. with reasonable minimum requirements. The Xtensa Linux project has
  26. a home page at <http://www.linux-xtensa.org/>.
  27. config RWSEM_XCHGADD_ALGORITHM
  28. def_bool y
  29. config GENERIC_HWEIGHT
  30. def_bool y
  31. config GENERIC_GPIO
  32. bool
  33. config ARCH_HAS_ILOG2_U32
  34. def_bool n
  35. config ARCH_HAS_ILOG2_U64
  36. def_bool n
  37. config NO_IOPORT
  38. def_bool n
  39. config HZ
  40. int
  41. default 100
  42. source "init/Kconfig"
  43. source "kernel/Kconfig.freezer"
  44. config MMU
  45. def_bool n
  46. config VARIANT_IRQ_SWITCH
  47. def_bool n
  48. menu "Processor type and features"
  49. choice
  50. prompt "Xtensa Processor Configuration"
  51. default XTENSA_VARIANT_FSF
  52. config XTENSA_VARIANT_FSF
  53. bool "fsf - default (not generic) configuration"
  54. select MMU
  55. config XTENSA_VARIANT_DC232B
  56. bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
  57. select MMU
  58. help
  59. This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
  60. config XTENSA_VARIANT_DC233C
  61. bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
  62. select MMU
  63. help
  64. This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
  65. config XTENSA_VARIANT_S6000
  66. bool "s6000 - Stretch software configurable processor"
  67. select VARIANT_IRQ_SWITCH
  68. select ARCH_REQUIRE_GPIOLIB
  69. select XTENSA_CALIBRATE_CCOUNT
  70. endchoice
  71. config XTENSA_UNALIGNED_USER
  72. bool "Unaligned memory access in use space"
  73. help
  74. The Xtensa architecture currently does not handle unaligned
  75. memory accesses in hardware but through an exception handler.
  76. Per default, unaligned memory accesses are disabled in user space.
  77. Say Y here to enable unaligned memory access in user space.
  78. source "kernel/Kconfig.preempt"
  79. config MATH_EMULATION
  80. bool "Math emulation"
  81. help
  82. Can we use information of configuration file?
  83. config INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  84. bool "Initialize Xtensa MMU inside the Linux kernel code"
  85. default y
  86. help
  87. Earlier version initialized the MMU in the exception vector
  88. before jumping to _startup in head.S and had an advantage that
  89. it was possible to place a software breakpoint at 'reset' and
  90. then enter your normal kernel breakpoints once the MMU was mapped
  91. to the kernel mappings (0XC0000000).
  92. This unfortunately doesn't work for U-Boot and likley also wont
  93. work for using KEXEC to have a hot kernel ready for doing a
  94. KDUMP.
  95. So now the MMU is initialized in head.S but it's necessary to
  96. use hardware breakpoints (gdb 'hbreak' cmd) to break at _startup.
  97. xt-gdb can't place a Software Breakpoint in the 0XD region prior
  98. to mapping the MMU and after mapping even if the area of low memory
  99. was mapped gdb wouldn't remove the breakpoint on hitting it as the
  100. PC wouldn't match. Since Hardware Breakpoints are recommended for
  101. Linux configurations it seems reasonable to just assume they exist
  102. and leave this older mechanism for unfortunate souls that choose
  103. not to follow Tensilica's recommendation.
  104. Selecting this will cause U-Boot to set the KERNEL Load and Entry
  105. address at 0x00003000 instead of the mapped std of 0xD0003000.
  106. If in doubt, say Y.
  107. endmenu
  108. config XTENSA_CALIBRATE_CCOUNT
  109. def_bool n
  110. help
  111. On some platforms (XT2000, for example), the CPU clock rate can
  112. vary. The frequency can be determined, however, by measuring
  113. against a well known, fixed frequency, such as an UART oscillator.
  114. config SERIAL_CONSOLE
  115. def_bool n
  116. config XTENSA_ISS_NETWORK
  117. def_bool n
  118. menu "Bus options"
  119. config PCI
  120. bool "PCI support"
  121. default y
  122. help
  123. Find out whether you have a PCI motherboard. PCI is the name of a
  124. bus system, i.e. the way the CPU talks to the other stuff inside
  125. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  126. VESA. If you have PCI, say Y, otherwise N.
  127. source "drivers/pci/Kconfig"
  128. endmenu
  129. menu "Platform options"
  130. choice
  131. prompt "Xtensa System Type"
  132. default XTENSA_PLATFORM_ISS
  133. config XTENSA_PLATFORM_ISS
  134. bool "ISS"
  135. depends on TTY
  136. select XTENSA_CALIBRATE_CCOUNT
  137. select SERIAL_CONSOLE
  138. select XTENSA_ISS_NETWORK
  139. help
  140. ISS is an acronym for Tensilica's Instruction Set Simulator.
  141. config XTENSA_PLATFORM_XT2000
  142. bool "XT2000"
  143. help
  144. XT2000 is the name of Tensilica's feature-rich emulation platform.
  145. This hardware is capable of running a full Linux distribution.
  146. config XTENSA_PLATFORM_S6105
  147. bool "S6105"
  148. select SERIAL_CONSOLE
  149. select NO_IOPORT
  150. config XTENSA_PLATFORM_XTFPGA
  151. bool "XTFPGA"
  152. select SERIAL_CONSOLE
  153. select ETHOC
  154. select XTENSA_CALIBRATE_CCOUNT
  155. help
  156. XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
  157. This hardware is capable of running a full Linux distribution.
  158. endchoice
  159. config XTENSA_CPU_CLOCK
  160. int "CPU clock rate [MHz]"
  161. depends on !XTENSA_CALIBRATE_CCOUNT
  162. default 16
  163. config GENERIC_CALIBRATE_DELAY
  164. bool "Auto calibration of the BogoMIPS value"
  165. help
  166. The BogoMIPS value can easily be derived from the CPU frequency.
  167. config CMDLINE_BOOL
  168. bool "Default bootloader kernel arguments"
  169. config CMDLINE
  170. string "Initial kernel command string"
  171. depends on CMDLINE_BOOL
  172. default "console=ttyS0,38400 root=/dev/ram"
  173. help
  174. On some architectures (EBSA110 and CATS), there is currently no way
  175. for the boot loader to pass arguments to the kernel. For these
  176. architectures, you should supply some command-line options at build
  177. time by entering them here. As a minimum, you should specify the
  178. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  179. config USE_OF
  180. bool "Flattened Device Tree support"
  181. select OF
  182. select OF_EARLY_FLATTREE
  183. help
  184. Include support for flattened device tree machine descriptions.
  185. config BUILTIN_DTB
  186. string "DTB to build into the kernel image"
  187. depends on OF
  188. config BLK_DEV_SIMDISK
  189. tristate "Host file-based simulated block device support"
  190. default n
  191. depends on XTENSA_PLATFORM_ISS
  192. help
  193. Create block devices that map to files in the host file system.
  194. Device binding to host file may be changed at runtime via proc
  195. interface provided the device is not in use.
  196. config BLK_DEV_SIMDISK_COUNT
  197. int "Number of host file-based simulated block devices"
  198. range 1 10
  199. depends on BLK_DEV_SIMDISK
  200. default 2
  201. help
  202. This is the default minimal number of created block devices.
  203. Kernel/module parameter 'simdisk_count' may be used to change this
  204. value at runtime. More file names (but no more than 10) may be
  205. specified as parameters, simdisk_count grows accordingly.
  206. config SIMDISK0_FILENAME
  207. string "Host filename for the first simulated device"
  208. depends on BLK_DEV_SIMDISK = y
  209. default ""
  210. help
  211. Attach a first simdisk to a host file. Conventionally, this file
  212. contains a root file system.
  213. config SIMDISK1_FILENAME
  214. string "Host filename for the second simulated device"
  215. depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
  216. default ""
  217. help
  218. Another simulated disk in a host file for a buildroot-independent
  219. storage.
  220. source "mm/Kconfig"
  221. source "drivers/pcmcia/Kconfig"
  222. source "drivers/pci/hotplug/Kconfig"
  223. endmenu
  224. menu "Executable file formats"
  225. # only elf supported
  226. config KCORE_ELF
  227. def_bool y
  228. depends on PROC_FS
  229. help
  230. If you enabled support for /proc file system then the file
  231. /proc/kcore will contain the kernel core image in ELF format. This
  232. can be used in gdb:
  233. $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
  234. This is especially useful if you have compiled the kernel with the
  235. "-g" option to preserve debugging information. It is mainly used
  236. for examining kernel data structures on the live kernel.
  237. source "fs/Kconfig.binfmt"
  238. endmenu
  239. source "net/Kconfig"
  240. source "drivers/Kconfig"
  241. source "fs/Kconfig"
  242. source "arch/xtensa/Kconfig.debug"
  243. source "security/Kconfig"
  244. source "crypto/Kconfig"
  245. source "lib/Kconfig"