Kconfig 5.1 KB

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