Kconfig 5.7 KB

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