Kconfig 4.9 KB

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