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