Kconfig 7.0 KB

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