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