Kconfig 7.1 KB

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