Kconfig 5.0 KB

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