Kconfig 7.1 KB

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