Kconfig 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. config SYMBOL_PREFIX
  2. string
  3. default "_"
  4. config METAG
  5. def_bool y
  6. select EMBEDDED
  7. select GENERIC_ATOMIC64
  8. select GENERIC_CLOCKEVENTS
  9. select GENERIC_IRQ_SHOW
  10. select GENERIC_SMP_IDLE_THREAD
  11. select HAVE_64BIT_ALIGNED_ACCESS
  12. select HAVE_ARCH_TRACEHOOK
  13. select HAVE_C_RECORDMCOUNT
  14. select HAVE_DEBUG_KMEMLEAK
  15. select HAVE_DYNAMIC_FTRACE
  16. select HAVE_FTRACE_MCOUNT_RECORD
  17. select HAVE_FUNCTION_TRACER
  18. select HAVE_FUNCTION_TRACE_MCOUNT_TEST
  19. select HAVE_GENERIC_HARDIRQS
  20. select HAVE_KERNEL_BZIP2
  21. select HAVE_KERNEL_GZIP
  22. select HAVE_KERNEL_LZO
  23. select HAVE_KERNEL_XZ
  24. select HAVE_MEMBLOCK
  25. select HAVE_MEMBLOCK_NODE_MAP
  26. select HAVE_MOD_ARCH_SPECIFIC
  27. select HAVE_PERF_EVENTS
  28. select HAVE_SYSCALL_TRACEPOINTS
  29. select IRQ_DOMAIN
  30. select MODULES_USE_ELF_RELA
  31. select OF
  32. select OF_EARLY_FLATTREE
  33. select SPARSE_IRQ
  34. config STACKTRACE_SUPPORT
  35. def_bool y
  36. config LOCKDEP_SUPPORT
  37. def_bool y
  38. config HAVE_LATENCYTOP_SUPPORT
  39. def_bool y
  40. config RWSEM_GENERIC_SPINLOCK
  41. def_bool y
  42. config RWSEM_XCHGADD_ALGORITHM
  43. bool
  44. config GENERIC_HWEIGHT
  45. def_bool y
  46. config GENERIC_CALIBRATE_DELAY
  47. def_bool y
  48. config GENERIC_GPIO
  49. def_bool n
  50. config NO_IOPORT
  51. def_bool y
  52. source "init/Kconfig"
  53. source "kernel/Kconfig.freezer"
  54. menu "Processor type and features"
  55. config MMU
  56. def_bool y
  57. config STACK_GROWSUP
  58. def_bool y
  59. config HOTPLUG_CPU
  60. bool "Enable CPU hotplug support"
  61. depends on SMP
  62. help
  63. Say Y here to allow turning CPUs off and on. CPUs can be
  64. controlled through /sys/devices/system/cpu.
  65. Say N if you want to disable CPU hotplug.
  66. config HIGHMEM
  67. bool "High Memory Support"
  68. help
  69. The address space of Meta processors is only 4 Gigabytes large
  70. and it has to accommodate user address space, kernel address
  71. space as well as some memory mapped IO. That means that, if you
  72. have a large amount of physical memory and/or IO, not all of the
  73. memory can be "permanently mapped" by the kernel. The physical
  74. memory that is not permanently mapped is called "high memory".
  75. Depending on the selected kernel/user memory split, minimum
  76. vmalloc space and actual amount of RAM, you may not need this
  77. option which should result in a slightly faster kernel.
  78. If unsure, say n.
  79. source "arch/metag/mm/Kconfig"
  80. source "arch/metag/Kconfig.soc"
  81. config METAG_META12
  82. bool
  83. help
  84. Select this from the SoC config symbol to indicate that it contains a
  85. Meta 1.2 core.
  86. config METAG_META21
  87. bool
  88. help
  89. Select this from the SoC config symbol to indicate that it contains a
  90. Meta 2.1 core.
  91. config SMP
  92. bool "Symmetric multi-processing support"
  93. depends on METAG_META21 && METAG_META21_MMU
  94. select USE_GENERIC_SMP_HELPERS
  95. help
  96. This enables support for systems with more than one thread running
  97. Linux. If you have a system with only one thread running Linux,
  98. say N. Otherwise, say Y.
  99. config NR_CPUS
  100. int "Maximum number of CPUs (2-4)" if SMP
  101. range 2 4 if SMP
  102. default "1" if !SMP
  103. default "4" if SMP
  104. config METAG_SMP_WRITE_REORDERING
  105. bool
  106. help
  107. This attempts to prevent cache-memory incoherence due to external
  108. reordering of writes from different hardware threads when SMP is
  109. enabled. It adds fences (system event 0) to smp_mb and smp_rmb in an
  110. attempt to catch some of the cases, and also before writes to shared
  111. memory in LOCK1 protected atomics and spinlocks.
  112. This will not completely prevent cache incoherency on affected cores.
  113. config METAG_LNKGET_AROUND_CACHE
  114. bool
  115. depends on METAG_META21
  116. help
  117. This indicates that the LNKGET/LNKSET instructions go around the
  118. cache, which requires some extra cache flushes when the memory needs
  119. to be accessed by normal GET/SET instructions too.
  120. choice
  121. prompt "Atomicity primitive"
  122. default METAG_ATOMICITY_LNKGET
  123. help
  124. This option selects the mechanism for performing atomic operations.
  125. config METAG_ATOMICITY_IRQSOFF
  126. depends on !SMP
  127. bool "irqsoff"
  128. help
  129. This option disables interrupts to achieve atomicity. This mechanism
  130. is not SMP-safe.
  131. config METAG_ATOMICITY_LNKGET
  132. depends on METAG_META21
  133. bool "lnkget/lnkset"
  134. help
  135. This option uses the LNKGET and LNKSET instructions to achieve
  136. atomicity. LNKGET/LNKSET are load-link/store-conditional instructions.
  137. Choose this option if your system requires low latency.
  138. config METAG_ATOMICITY_LOCK1
  139. depends on SMP
  140. bool "lock1"
  141. help
  142. This option uses the LOCK1 instruction for atomicity. This is mainly
  143. provided as a debugging aid if the lnkget/lnkset atomicity primitive
  144. isn't working properly.
  145. endchoice
  146. config METAG_FPU
  147. bool "FPU Support"
  148. depends on METAG_META21
  149. default y
  150. help
  151. This option allows processes to use FPU hardware available with this
  152. CPU. If this option is not enabled FPU registers will not be saved
  153. and restored on context-switch.
  154. If you plan on running programs which are compiled to use hard floats
  155. say Y here.
  156. config METAG_DSP
  157. bool "DSP Support"
  158. help
  159. This option allows processes to use DSP hardware available
  160. with this CPU. If this option is not enabled DSP registers
  161. will not be saved and restored on context-switch.
  162. If you plan on running DSP programs say Y here.
  163. config METAG_PERFCOUNTER_IRQS
  164. bool "PerfCounters interrupt support"
  165. depends on METAG_META21
  166. help
  167. This option enables using interrupts to collect information from
  168. Performance Counters. This option is supported in new META21
  169. (starting from HTP265).
  170. When disabled, Performance Counters information will be collected
  171. based on Timer Interrupt.
  172. config METAG_DA
  173. bool "DA support"
  174. help
  175. Say Y if you plan to use a DA debug adapter with Linux. The presence
  176. of the DA will be detected automatically at boot, so it is safe to say
  177. Y to this option even when booting without a DA.
  178. This enables support for services provided by DA JTAG debug adapters,
  179. such as:
  180. - communication over DA channels (such as the console driver).
  181. - use of the DA filesystem.
  182. menu "Boot options"
  183. config METAG_BUILTIN_DTB
  184. bool "Embed DTB in kernel image"
  185. default y
  186. help
  187. Embeds a device tree binary in the kernel image.
  188. config METAG_BUILTIN_DTB_NAME
  189. string "Built in DTB"
  190. depends on METAG_BUILTIN_DTB
  191. help
  192. Set the name of the DTB to embed (leave blank to pick one
  193. automatically based on kernel configuration).
  194. config CMDLINE_BOOL
  195. bool "Default bootloader kernel arguments"
  196. config CMDLINE
  197. string "Kernel command line"
  198. depends on CMDLINE_BOOL
  199. help
  200. On some architectures there is currently no way for the boot loader
  201. to pass arguments to the kernel. For these architectures, you should
  202. supply some command-line options at build time by entering them
  203. here.
  204. config CMDLINE_FORCE
  205. bool "Force default kernel command string"
  206. depends on CMDLINE_BOOL
  207. help
  208. Set this to have arguments from the default kernel command string
  209. override those passed by the boot loader.
  210. endmenu
  211. source "kernel/Kconfig.preempt"
  212. source kernel/Kconfig.hz
  213. endmenu
  214. menu "Power management options"
  215. source kernel/power/Kconfig
  216. endmenu
  217. menu "Executable file formats"
  218. source "fs/Kconfig.binfmt"
  219. endmenu
  220. source "net/Kconfig"
  221. source "drivers/Kconfig"
  222. source "fs/Kconfig"
  223. source "arch/metag/Kconfig.debug"
  224. source "security/Kconfig"
  225. source "crypto/Kconfig"
  226. source "lib/Kconfig"