Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. config MICROBLAZE
  2. def_bool y
  3. select ARCH_NO_SWAP
  4. select ARCH_HAS_GCOV_PROFILE_ALL
  5. select ARCH_HAS_SYNC_DMA_FOR_CPU
  6. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  7. select ARCH_MIGHT_HAVE_PC_PARPORT
  8. select ARCH_NO_COHERENT_DMA_MMAP if !MMU
  9. select ARCH_WANT_IPC_PARSE_VERSION
  10. select BUILDTIME_EXTABLE_SORT
  11. select TIMER_OF
  12. select CLONE_BACKWARDS3
  13. select COMMON_CLK
  14. select DMA_NONCOHERENT_OPS
  15. select DMA_NONCOHERENT_MMAP
  16. select GENERIC_ATOMIC64
  17. select GENERIC_CLOCKEVENTS
  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_DEBUG_KMEMLEAK
  27. select HAVE_DYNAMIC_FTRACE
  28. select HAVE_FTRACE_MCOUNT_RECORD
  29. select HAVE_FUNCTION_GRAPH_TRACER
  30. select HAVE_FUNCTION_TRACER
  31. select NO_BOOTMEM
  32. select HAVE_MEMBLOCK
  33. select HAVE_MEMBLOCK_NODE_MAP
  34. select HAVE_OPROFILE
  35. select IRQ_DOMAIN
  36. select XILINX_INTC
  37. select MODULES_USE_ELF_RELA
  38. select OF
  39. select OF_EARLY_FLATTREE
  40. select TRACING_SUPPORT
  41. select VIRT_TO_BUS
  42. select CPU_NO_EFFICIENT_FFS
  43. # Endianness selection
  44. choice
  45. prompt "Endianness selection"
  46. default CPU_LITTLE_ENDIAN
  47. help
  48. microblaze architectures can be configured for either little or
  49. big endian formats. Be sure to select the appropriate mode.
  50. config CPU_BIG_ENDIAN
  51. bool "Big endian"
  52. config CPU_LITTLE_ENDIAN
  53. bool "Little endian"
  54. endchoice
  55. config RWSEM_GENERIC_SPINLOCK
  56. def_bool y
  57. config ZONE_DMA
  58. def_bool y
  59. config RWSEM_XCHGADD_ALGORITHM
  60. bool
  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. bool "MMU support"
  80. default n
  81. comment "Boot options"
  82. config CMDLINE_BOOL
  83. bool "Default bootloader kernel arguments"
  84. config CMDLINE
  85. string "Default kernel command string"
  86. depends on CMDLINE_BOOL
  87. default "console=ttyUL0,115200"
  88. help
  89. On some architectures there is currently no way for the boot loader
  90. to pass arguments to the kernel. For these architectures, you should
  91. supply some command-line options at build time by entering them
  92. here.
  93. config CMDLINE_FORCE
  94. bool "Force default kernel command string"
  95. depends on CMDLINE_BOOL
  96. default n
  97. help
  98. Set this to have arguments from the default kernel command string
  99. override those passed by the boot loader.
  100. config SECCOMP
  101. bool "Enable seccomp to safely compute untrusted bytecode"
  102. depends on PROC_FS
  103. default y
  104. help
  105. This kernel feature is useful for number crunching applications
  106. that may need to compute untrusted bytecode during their
  107. execution. By using pipes or other transports made available to
  108. the process as file descriptors supporting the read/write
  109. syscalls, it's possible to isolate those applications in
  110. their own address space using seccomp. Once seccomp is
  111. enabled via /proc/<pid>/seccomp, it cannot be disabled
  112. and the task is only allowed to execute a few safe syscalls
  113. defined by each seccomp mode.
  114. If unsure, say Y. Only embedded should say N here.
  115. endmenu
  116. menu "Kernel features"
  117. config NR_CPUS
  118. int
  119. default "1"
  120. config ADVANCED_OPTIONS
  121. bool "Prompt for advanced kernel configuration options"
  122. help
  123. This option will enable prompting for a variety of advanced kernel
  124. configuration options. These options can cause the kernel to not
  125. work if they are set incorrectly, but can be used to optimize certain
  126. aspects of kernel memory management.
  127. Unless you know what you are doing, say N here.
  128. comment "Default settings for advanced configuration options are used"
  129. depends on !ADVANCED_OPTIONS
  130. config XILINX_UNCACHED_SHADOW
  131. bool "Are you using uncached shadow for RAM ?"
  132. depends on ADVANCED_OPTIONS && !MMU
  133. default n
  134. help
  135. This is needed to be able to allocate uncachable memory regions.
  136. The feature requires the design to define the RAM memory controller
  137. window to be twice as large as the actual physical memory.
  138. config HIGHMEM
  139. bool "High memory support"
  140. depends on MMU
  141. help
  142. The address space of Microblaze processors is only 4 Gigabytes large
  143. and it has to accommodate user address space, kernel address
  144. space as well as some memory mapped IO. That means that, if you
  145. have a large amount of physical memory and/or IO, not all of the
  146. memory can be "permanently mapped" by the kernel. The physical
  147. memory that is not permanently mapped is called "high memory".
  148. If unsure, say n.
  149. config LOWMEM_SIZE_BOOL
  150. bool "Set maximum low memory"
  151. depends on ADVANCED_OPTIONS && MMU
  152. help
  153. This option allows you to set the maximum amount of memory which
  154. will be used as "low memory", that is, memory which the kernel can
  155. access directly, without having to set up a kernel virtual mapping.
  156. This can be useful in optimizing the layout of kernel virtual
  157. memory.
  158. Say N here unless you know what you are doing.
  159. config LOWMEM_SIZE
  160. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  161. default "0x30000000"
  162. config MANUAL_RESET_VECTOR
  163. hex "Microblaze reset vector address setup"
  164. default "0x0"
  165. help
  166. Set this option to have the kernel override the CPU Reset vector.
  167. If zero, no change will be made to the MicroBlaze reset vector at
  168. address 0x0.
  169. If non-zero, a jump instruction to this address, will be written
  170. to the reset vector at address 0x0.
  171. If you are unsure, set it to default value 0x0.
  172. config KERNEL_START_BOOL
  173. bool "Set custom kernel base address"
  174. depends on ADVANCED_OPTIONS
  175. help
  176. This option allows you to set the kernel virtual address at which
  177. the kernel will map low memory (the kernel image will be linked at
  178. this address). This can be useful in optimizing the virtual memory
  179. layout of the system.
  180. Say N here unless you know what you are doing.
  181. config KERNEL_START
  182. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  183. default "0xc0000000" if MMU
  184. default KERNEL_BASE_ADDR if !MMU
  185. config TASK_SIZE_BOOL
  186. bool "Set custom user task size"
  187. depends on ADVANCED_OPTIONS && MMU
  188. help
  189. This option allows you to set the amount of virtual address space
  190. allocated to user tasks. This can be useful in optimizing the
  191. virtual memory layout of the system.
  192. Say N here unless you know what you are doing.
  193. config TASK_SIZE
  194. hex "Size of user task space" if TASK_SIZE_BOOL
  195. default "0x80000000"
  196. choice
  197. prompt "Page size"
  198. default MICROBLAZE_4K_PAGES
  199. depends on ADVANCED_OPTIONS && !MMU
  200. help
  201. Select the kernel logical page size. Increasing the page size
  202. will reduce software overhead at each page boundary, allow
  203. hardware prefetch mechanisms to be more effective, and allow
  204. larger dma transfers increasing IO efficiency and reducing
  205. overhead. However the utilization of memory will increase.
  206. For example, each cached file will using a multiple of the
  207. page size to hold its contents and the difference between the
  208. end of file and the end of page is wasted.
  209. If unsure, choose 4K_PAGES.
  210. config MICROBLAZE_4K_PAGES
  211. bool "4k page size"
  212. config MICROBLAZE_16K_PAGES
  213. bool "16k page size"
  214. config MICROBLAZE_64K_PAGES
  215. bool "64k page size"
  216. endchoice
  217. endmenu
  218. menu "Bus Options"
  219. config PCI
  220. bool "PCI support"
  221. config PCI_DOMAINS
  222. def_bool PCI
  223. config PCI_DOMAINS_GENERIC
  224. def_bool PCI_DOMAINS
  225. config PCI_SYSCALL
  226. def_bool PCI
  227. config PCI_XILINX
  228. bool "Xilinx PCI host bridge support"
  229. depends on PCI
  230. source "drivers/pci/Kconfig"
  231. endmenu