Kconfig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # SPDX-License-Identifier: GPL-2.0
  2. config NIOS2
  3. def_bool y
  4. select TIMER_OF
  5. select GENERIC_ATOMIC64
  6. select GENERIC_CLOCKEVENTS
  7. select GENERIC_CPU_DEVICES
  8. select GENERIC_IRQ_PROBE
  9. select GENERIC_IRQ_SHOW
  10. select GENERIC_STRNCPY_FROM_USER
  11. select GENERIC_STRNLEN_USER
  12. select HAVE_ARCH_TRACEHOOK
  13. select HAVE_ARCH_KGDB
  14. select IRQ_DOMAIN
  15. select MODULES_USE_ELF_RELA
  16. select OF
  17. select OF_EARLY_FLATTREE
  18. select SOC_BUS
  19. select SPARSE_IRQ
  20. select USB_ARCH_HAS_HCD if USB_SUPPORT
  21. select CPU_NO_EFFICIENT_FFS
  22. config GENERIC_CSUM
  23. def_bool y
  24. config GENERIC_HWEIGHT
  25. def_bool y
  26. config GENERIC_CALIBRATE_DELAY
  27. def_bool y
  28. config NO_IOPORT_MAP
  29. def_bool y
  30. config HAS_DMA
  31. def_bool y
  32. config FPU
  33. def_bool n
  34. config SWAP
  35. def_bool n
  36. config RWSEM_GENERIC_SPINLOCK
  37. def_bool y
  38. config TRACE_IRQFLAGS_SUPPORT
  39. def_bool n
  40. source "init/Kconfig"
  41. menu "Kernel features"
  42. source "kernel/Kconfig.preempt"
  43. source "kernel/Kconfig.freezer"
  44. source "kernel/Kconfig.hz"
  45. source "mm/Kconfig"
  46. config FORCE_MAX_ZONEORDER
  47. int "Maximum zone order"
  48. range 9 20
  49. default "11"
  50. help
  51. The kernel memory allocator divides physically contiguous memory
  52. blocks into "zones", where each zone is a power of two number of
  53. pages. This option selects the largest power of two that the kernel
  54. keeps in the memory allocator. If you need to allocate very large
  55. blocks of physically contiguous memory, then you may need to
  56. increase this value.
  57. This config option is actually maximum order plus one. For example,
  58. a value of 11 means that the largest free memory block is 2^10 pages.
  59. endmenu
  60. source "arch/nios2/platform/Kconfig.platform"
  61. menu "Processor type and features"
  62. config MMU
  63. def_bool y
  64. config NR_CPUS
  65. int
  66. default "1"
  67. config NIOS2_ALIGNMENT_TRAP
  68. bool "Catch alignment trap"
  69. default y
  70. help
  71. Nios II CPUs cannot fetch/store data which is not bus aligned,
  72. i.e., a 2 or 4 byte fetch must start at an address divisible by
  73. 2 or 4. Any non-aligned load/store instructions will be trapped and
  74. emulated in software if you say Y here, which has a performance
  75. impact.
  76. comment "Boot options"
  77. config CMDLINE_BOOL
  78. bool "Default bootloader kernel arguments"
  79. default y
  80. config CMDLINE
  81. string "Default kernel command string"
  82. default ""
  83. depends on CMDLINE_BOOL
  84. help
  85. On some platforms, there is currently no way for the boot loader to
  86. pass arguments to the kernel. For these platforms, you can supply
  87. some command-line options at build time by entering them here. In
  88. other cases you can specify kernel args so that you don't have
  89. to set them up in board prom initialization routines.
  90. config CMDLINE_FORCE
  91. bool "Force default kernel command string"
  92. depends on CMDLINE_BOOL
  93. help
  94. Set this to have arguments from the default kernel command string
  95. override those passed by the boot loader.
  96. config NIOS2_CMDLINE_IGNORE_DTB
  97. bool "Ignore kernel command string from DTB"
  98. depends on CMDLINE_BOOL
  99. depends on !CMDLINE_FORCE
  100. default y
  101. help
  102. Set this to ignore the bootargs property from the devicetree's
  103. chosen node and fall back to CMDLINE if nothing is passed.
  104. config NIOS2_PASS_CMDLINE
  105. bool "Passed kernel command line from u-boot"
  106. default n
  107. help
  108. Use bootargs env variable from u-boot for kernel command line.
  109. will override "Default kernel command string".
  110. Say N if you are unsure.
  111. config NIOS2_BOOT_LINK_OFFSET
  112. hex "Link address offset for booting"
  113. default "0x00500000"
  114. help
  115. This option allows you to set the link address offset of the zImage.
  116. This can be useful if you are on a board which has a small amount of
  117. memory.
  118. endmenu
  119. menu "Advanced setup"
  120. config ADVANCED_OPTIONS
  121. bool "Prompt for advanced kernel configuration options"
  122. comment "Default settings for advanced configuration options are used"
  123. depends on !ADVANCED_OPTIONS
  124. config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
  125. bool "Set custom kernel MMU region base address"
  126. depends on ADVANCED_OPTIONS
  127. help
  128. This option allows you to set the virtual address of the kernel MMU region.
  129. Say N here unless you know what you are doing.
  130. config NIOS2_KERNEL_MMU_REGION_BASE
  131. hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
  132. default "0x80000000"
  133. help
  134. This option allows you to set the virtual base address of the kernel MMU region.
  135. config NIOS2_KERNEL_REGION_BASE_BOOL
  136. bool "Set custom kernel region base address"
  137. depends on ADVANCED_OPTIONS
  138. help
  139. This option allows you to set the virtual address of the kernel region.
  140. Say N here unless you know what you are doing.
  141. config NIOS2_KERNEL_REGION_BASE
  142. hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
  143. default "0xc0000000"
  144. config NIOS2_IO_REGION_BASE_BOOL
  145. bool "Set custom I/O region base address"
  146. depends on ADVANCED_OPTIONS
  147. help
  148. This option allows you to set the virtual address of the I/O region.
  149. Say N here unless you know what you are doing.
  150. config NIOS2_IO_REGION_BASE
  151. hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
  152. default "0xe0000000"
  153. endmenu
  154. menu "Executable file formats"
  155. source "fs/Kconfig.binfmt"
  156. endmenu
  157. source "net/Kconfig"
  158. source "drivers/Kconfig"
  159. source "fs/Kconfig"
  160. source "arch/nios2/Kconfig.debug"
  161. source "security/Kconfig"
  162. source "crypto/Kconfig"
  163. source "lib/Kconfig"