Kconfig 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config MICROBLAZE
  3. def_bool y
  4. select ARCH_32BIT_OFF_T
  5. select ARCH_NO_SWAP
  6. select ARCH_HAS_DMA_PREP_COHERENT
  7. select ARCH_HAS_GCOV_PROFILE_ALL
  8. select ARCH_HAS_SYNC_DMA_FOR_CPU
  9. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  10. select ARCH_MIGHT_HAVE_PC_PARPORT
  11. select ARCH_WANT_IPC_PARSE_VERSION
  12. select BUILDTIME_TABLE_SORT
  13. select TIMER_OF
  14. select CLONE_BACKWARDS3
  15. select COMMON_CLK
  16. select DMA_DIRECT_REMAP
  17. select GENERIC_ATOMIC64
  18. select GENERIC_CPU_DEVICES
  19. select GENERIC_IDLE_POLL_SETUP
  20. select GENERIC_IRQ_PROBE
  21. select GENERIC_IRQ_SHOW
  22. select GENERIC_PCI_IOMAP
  23. select GENERIC_SCHED_CLOCK
  24. select HAVE_ARCH_HASH
  25. select HAVE_ARCH_KGDB
  26. select HAVE_ARCH_SECCOMP
  27. select HAVE_DEBUG_KMEMLEAK
  28. select HAVE_DMA_CONTIGUOUS
  29. select HAVE_DYNAMIC_FTRACE
  30. select HAVE_FTRACE_MCOUNT_RECORD
  31. select HAVE_FUNCTION_GRAPH_TRACER
  32. select HAVE_FUNCTION_TRACER
  33. select HAVE_PCI
  34. select IRQ_DOMAIN
  35. select XILINX_INTC
  36. select MODULES_USE_ELF_RELA
  37. select OF
  38. select OF_EARLY_FLATTREE
  39. select PCI_DOMAINS_GENERIC if PCI
  40. select PCI_SYSCALL if PCI
  41. select CPU_NO_EFFICIENT_FFS
  42. select MMU_GATHER_NO_RANGE
  43. select SPARSE_IRQ
  44. select ZONE_DMA
  45. select TRACE_IRQFLAGS_SUPPORT
  46. select GENERIC_IRQ_MULTI_HANDLER
  47. # Endianness selection
  48. choice
  49. prompt "Endianness selection"
  50. default CPU_LITTLE_ENDIAN
  51. help
  52. microblaze architectures can be configured for either little or
  53. big endian formats. Be sure to select the appropriate mode.
  54. config CPU_BIG_ENDIAN
  55. bool "Big endian"
  56. config CPU_LITTLE_ENDIAN
  57. bool "Little endian"
  58. endchoice
  59. config ARCH_HAS_ILOG2_U32
  60. def_bool n
  61. config ARCH_HAS_ILOG2_U64
  62. def_bool n
  63. config GENERIC_HWEIGHT
  64. def_bool y
  65. config GENERIC_CALIBRATE_DELAY
  66. def_bool y
  67. config GENERIC_CSUM
  68. def_bool y
  69. config STACKTRACE_SUPPORT
  70. def_bool y
  71. config LOCKDEP_SUPPORT
  72. def_bool y
  73. source "arch/microblaze/Kconfig.platform"
  74. menu "Processor type and features"
  75. source "kernel/Kconfig.hz"
  76. config MMU
  77. def_bool y
  78. comment "Boot options"
  79. config CMDLINE_BOOL
  80. bool "Default bootloader kernel arguments"
  81. config CMDLINE
  82. string "Default kernel command string"
  83. depends on CMDLINE_BOOL
  84. default "console=ttyUL0,115200"
  85. help
  86. On some architectures there is currently no way for the boot loader
  87. to pass arguments to the kernel. For these architectures, you should
  88. supply some command-line options at build time by entering them
  89. here.
  90. config CMDLINE_FORCE
  91. bool "Force default kernel command string"
  92. depends on CMDLINE_BOOL
  93. default n
  94. help
  95. Set this to have arguments from the default kernel command string
  96. override those passed by the boot loader.
  97. endmenu
  98. menu "Kernel features"
  99. config NR_CPUS
  100. int
  101. default "1"
  102. config ADVANCED_OPTIONS
  103. bool "Prompt for advanced kernel configuration options"
  104. help
  105. This option will enable prompting for a variety of advanced kernel
  106. configuration options. These options can cause the kernel to not
  107. work if they are set incorrectly, but can be used to optimize certain
  108. aspects of kernel memory management.
  109. Unless you know what you are doing, say N here.
  110. comment "Default settings for advanced configuration options are used"
  111. depends on !ADVANCED_OPTIONS
  112. config HIGHMEM
  113. bool "High memory support"
  114. select KMAP_LOCAL
  115. help
  116. The address space of Microblaze processors is only 4 Gigabytes large
  117. and it has to accommodate user address space, kernel address
  118. space as well as some memory mapped IO. That means that, if you
  119. have a large amount of physical memory and/or IO, not all of the
  120. memory can be "permanently mapped" by the kernel. The physical
  121. memory that is not permanently mapped is called "high memory".
  122. If unsure, say n.
  123. config LOWMEM_SIZE_BOOL
  124. bool "Set maximum low memory"
  125. depends on ADVANCED_OPTIONS
  126. help
  127. This option allows you to set the maximum amount of memory which
  128. will be used as "low memory", that is, memory which the kernel can
  129. access directly, without having to set up a kernel virtual mapping.
  130. This can be useful in optimizing the layout of kernel virtual
  131. memory.
  132. Say N here unless you know what you are doing.
  133. config LOWMEM_SIZE
  134. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  135. default "0x30000000"
  136. config MANUAL_RESET_VECTOR
  137. hex "Microblaze reset vector address setup"
  138. default "0x0"
  139. help
  140. Set this option to have the kernel override the CPU Reset vector.
  141. If zero, no change will be made to the MicroBlaze reset vector at
  142. address 0x0.
  143. If non-zero, a jump instruction to this address, will be written
  144. to the reset vector at address 0x0.
  145. If you are unsure, set it to default value 0x0.
  146. config KERNEL_START_BOOL
  147. bool "Set custom kernel base address"
  148. depends on ADVANCED_OPTIONS
  149. help
  150. This option allows you to set the kernel virtual address at which
  151. the kernel will map low memory (the kernel image will be linked at
  152. this address). This can be useful in optimizing the virtual memory
  153. layout of the system.
  154. Say N here unless you know what you are doing.
  155. config KERNEL_START
  156. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  157. default "0xc0000000"
  158. config TASK_SIZE_BOOL
  159. bool "Set custom user task size"
  160. depends on ADVANCED_OPTIONS
  161. help
  162. This option allows you to set the amount of virtual address space
  163. allocated to user tasks. This can be useful in optimizing the
  164. virtual memory layout of the system.
  165. Say N here unless you know what you are doing.
  166. config TASK_SIZE
  167. hex "Size of user task space" if TASK_SIZE_BOOL
  168. default "0x80000000"
  169. config MB_MANAGER
  170. bool "Support for Microblaze Manager"
  171. depends on ADVANCED_OPTIONS
  172. help
  173. This option enables API for configuring the MicroBlaze manager
  174. control register, which is consumed by the break handler to
  175. block the break.
  176. Say N here unless you know what you are doing.
  177. endmenu
  178. menu "Bus Options"
  179. config PCI_XILINX
  180. bool "Xilinx PCI host bridge support"
  181. depends on PCI
  182. endmenu