Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # SPDX-License-Identifier: GPL-2.0
  2. config NIOS2
  3. def_bool y
  4. select ARCH_32BIT_OFF_T
  5. select ARCH_HAS_DMA_PREP_COHERENT
  6. select ARCH_HAS_SYNC_DMA_FOR_CPU
  7. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  8. select ARCH_HAS_DMA_SET_UNCACHED
  9. select ARCH_NO_SWAP
  10. select COMMON_CLK
  11. select TIMER_OF
  12. select GENERIC_ATOMIC64
  13. select GENERIC_CLOCKEVENTS
  14. select GENERIC_CPU_DEVICES
  15. select GENERIC_IRQ_PROBE
  16. select GENERIC_IRQ_SHOW
  17. select GENERIC_STRNCPY_FROM_USER
  18. select GENERIC_STRNLEN_USER
  19. select HAVE_ARCH_TRACEHOOK
  20. select HAVE_ARCH_KGDB
  21. select IRQ_DOMAIN
  22. select MODULES_USE_ELF_RELA
  23. select OF
  24. select OF_EARLY_FLATTREE
  25. select SOC_BUS
  26. select SPARSE_IRQ
  27. select USB_ARCH_HAS_HCD if USB_SUPPORT
  28. select CPU_NO_EFFICIENT_FFS
  29. select MMU_GATHER_NO_RANGE if MMU
  30. select SET_FS
  31. config GENERIC_CSUM
  32. def_bool y
  33. config GENERIC_HWEIGHT
  34. def_bool y
  35. config GENERIC_CALIBRATE_DELAY
  36. def_bool y
  37. config NO_IOPORT_MAP
  38. def_bool y
  39. config FPU
  40. def_bool n
  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. 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