Kconfig 5.7 KB

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