Kconfig 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. config METAG
  2. def_bool y
  3. select EMBEDDED
  4. select GENERIC_ATOMIC64
  5. select GENERIC_CLOCKEVENTS
  6. select GENERIC_IRQ_SHOW
  7. select GENERIC_SMP_IDLE_THREAD
  8. select HAVE_64BIT_ALIGNED_ACCESS
  9. select HAVE_ARCH_TRACEHOOK
  10. select HAVE_C_RECORDMCOUNT
  11. select HAVE_DEBUG_KMEMLEAK
  12. select HAVE_DYNAMIC_FTRACE
  13. select HAVE_FTRACE_MCOUNT_RECORD
  14. select HAVE_FUNCTION_TRACER
  15. select HAVE_FUNCTION_TRACE_MCOUNT_TEST
  16. select HAVE_GENERIC_HARDIRQS
  17. select HAVE_KERNEL_BZIP2
  18. select HAVE_KERNEL_GZIP
  19. select HAVE_KERNEL_LZO
  20. select HAVE_KERNEL_XZ
  21. select HAVE_MEMBLOCK
  22. select HAVE_MEMBLOCK_NODE_MAP
  23. select HAVE_MOD_ARCH_SPECIFIC
  24. select HAVE_OPROFILE
  25. select HAVE_PERF_EVENTS
  26. select HAVE_SYSCALL_TRACEPOINTS
  27. select HAVE_UNDERSCORE_SYMBOL_PREFIX
  28. select IRQ_DOMAIN
  29. select MODULES_USE_ELF_RELA
  30. select OF
  31. select OF_EARLY_FLATTREE
  32. select SPARSE_IRQ
  33. select HAVE_DEBUG_STACKOVERFLOW
  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 NO_IOPORT
  49. def_bool y
  50. source "init/Kconfig"
  51. source "kernel/Kconfig.freezer"
  52. menu "Processor type and features"
  53. config MMU
  54. def_bool y
  55. config STACK_GROWSUP
  56. def_bool y
  57. config HOTPLUG_CPU
  58. bool "Enable CPU hotplug support"
  59. depends on SMP
  60. help
  61. Say Y here to allow turning CPUs off and on. CPUs can be
  62. controlled through /sys/devices/system/cpu.
  63. Say N if you want to disable CPU hotplug.
  64. config HIGHMEM
  65. bool "High Memory Support"
  66. help
  67. The address space of Meta processors is only 4 Gigabytes large
  68. and it has to accommodate user address space, kernel address
  69. space as well as some memory mapped IO. That means that, if you
  70. have a large amount of physical memory and/or IO, not all of the
  71. memory can be "permanently mapped" by the kernel. The physical
  72. memory that is not permanently mapped is called "high memory".
  73. Depending on the selected kernel/user memory split, minimum
  74. vmalloc space and actual amount of RAM, you may not need this
  75. option which should result in a slightly faster kernel.
  76. If unsure, say n.
  77. source "arch/metag/mm/Kconfig"
  78. source "arch/metag/Kconfig.soc"
  79. config METAG_META12
  80. bool
  81. help
  82. Select this from the SoC config symbol to indicate that it contains a
  83. Meta 1.2 core.
  84. config METAG_META21
  85. bool
  86. help
  87. Select this from the SoC config symbol to indicate that it contains a
  88. Meta 2.1 core.
  89. config SMP
  90. bool "Symmetric multi-processing support"
  91. depends on METAG_META21 && METAG_META21_MMU
  92. select USE_GENERIC_SMP_HELPERS
  93. help
  94. This enables support for systems with more than one thread running
  95. Linux. If you have a system with only one thread running Linux,
  96. say N. Otherwise, say Y.
  97. config NR_CPUS
  98. int "Maximum number of CPUs (2-4)" if SMP
  99. range 2 4 if SMP
  100. default "1" if !SMP
  101. default "4" if SMP
  102. config METAG_SMP_WRITE_REORDERING
  103. bool
  104. help
  105. This attempts to prevent cache-memory incoherence due to external
  106. reordering of writes from different hardware threads when SMP is
  107. enabled. It adds fences (system event 0) to smp_mb and smp_rmb in an
  108. attempt to catch some of the cases, and also before writes to shared
  109. memory in LOCK1 protected atomics and spinlocks.
  110. This will not completely prevent cache incoherency on affected cores.
  111. config METAG_LNKGET_AROUND_CACHE
  112. bool
  113. depends on METAG_META21
  114. help
  115. This indicates that the LNKGET/LNKSET instructions go around the
  116. cache, which requires some extra cache flushes when the memory needs
  117. to be accessed by normal GET/SET instructions too.
  118. choice
  119. prompt "Atomicity primitive"
  120. default METAG_ATOMICITY_LNKGET
  121. help
  122. This option selects the mechanism for performing atomic operations.
  123. config METAG_ATOMICITY_IRQSOFF
  124. depends on !SMP
  125. bool "irqsoff"
  126. help
  127. This option disables interrupts to achieve atomicity. This mechanism
  128. is not SMP-safe.
  129. config METAG_ATOMICITY_LNKGET
  130. depends on METAG_META21
  131. bool "lnkget/lnkset"
  132. help
  133. This option uses the LNKGET and LNKSET instructions to achieve
  134. atomicity. LNKGET/LNKSET are load-link/store-conditional instructions.
  135. Choose this option if your system requires low latency.
  136. config METAG_ATOMICITY_LOCK1
  137. depends on SMP
  138. bool "lock1"
  139. help
  140. This option uses the LOCK1 instruction for atomicity. This is mainly
  141. provided as a debugging aid if the lnkget/lnkset atomicity primitive
  142. isn't working properly.
  143. endchoice
  144. config METAG_FPU
  145. bool "FPU Support"
  146. depends on METAG_META21
  147. default y
  148. help
  149. This option allows processes to use FPU hardware available with this
  150. CPU. If this option is not enabled FPU registers will not be saved
  151. and restored on context-switch.
  152. If you plan on running programs which are compiled to use hard floats
  153. say Y here.
  154. config METAG_DSP
  155. bool "DSP Support"
  156. help
  157. This option allows processes to use DSP hardware available
  158. with this CPU. If this option is not enabled DSP registers
  159. will not be saved and restored on context-switch.
  160. If you plan on running DSP programs say Y here.
  161. config METAG_PERFCOUNTER_IRQS
  162. bool "PerfCounters interrupt support"
  163. depends on METAG_META21
  164. help
  165. This option enables using interrupts to collect information from
  166. Performance Counters. This option is supported in new META21
  167. (starting from HTP265).
  168. When disabled, Performance Counters information will be collected
  169. based on Timer Interrupt.
  170. config HW_PERF_EVENTS
  171. def_bool METAG_PERFCOUNTER_IRQS && PERF_EVENTS
  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"