Richard Kuo | e95bf45 | 2011-10-31 18:55:58 -0500 | [diff] [blame] | 1 | # Hexagon configuration |
| 2 | comment "Linux Kernel Configuration for Hexagon" |
| 3 | |
| 4 | config HEXAGON |
| 5 | def_bool y |
| 6 | select HAVE_OPROFILE |
| 7 | select USE_GENERIC_SMP_HELPERS if SMP |
| 8 | # Other pending projects/to-do items. |
| 9 | # select HAVE_REGS_AND_STACK_ACCESS_API |
| 10 | # select HAVE_HW_BREAKPOINT if PERF_EVENTS |
| 11 | # select ARCH_HAS_CPU_IDLE_WAIT |
| 12 | # select ARCH_WANT_OPTIONAL_GPIOLIB |
| 13 | # select ARCH_REQUIRE_GPIOLIB |
| 14 | # select HAVE_CLK |
| 15 | # select IRQ_PER_CPU |
| 16 | select HAVE_IRQ_WORK |
| 17 | # select GENERIC_PENDING_IRQ if SMP |
| 18 | select GENERIC_ATOMIC64 |
| 19 | select HAVE_PERF_EVENTS |
| 20 | select HAVE_GENERIC_HARDIRQS |
| 21 | select GENERIC_HARDIRQS_NO__DO_IRQ |
| 22 | select GENERIC_HARDIRQS_NO_DEPRECATED |
| 23 | # GENERIC_ALLOCATOR is used by dma_alloc_coherent() |
| 24 | select GENERIC_ALLOCATOR |
| 25 | select GENERIC_IRQ_SHOW |
| 26 | select HAVE_ARCH_KGDB |
| 27 | select HAVE_ARCH_TRACEHOOK |
| 28 | select NO_IOPORT |
Michael S. Tsirkin | 4673ca8 | 2011-11-24 14:54:28 +0200 | [diff] [blame] | 29 | select GENERIC_IOMAP |
Thomas Gleixner | 3b0132c | 2012-04-20 13:05:51 +0000 | [diff] [blame^] | 30 | select GENERIC_SMP_IDLE_THREAD |
Richard Kuo | e95bf45 | 2011-10-31 18:55:58 -0500 | [diff] [blame] | 31 | # mostly generic routines, with some accelerated ones |
| 32 | ---help--- |
| 33 | Qualcomm Hexagon is a processor architecture designed for high |
| 34 | performance and low power across a wide variety of applications. |
| 35 | |
| 36 | config HEXAGON_ARCH_V1 |
| 37 | bool |
| 38 | |
| 39 | config HEXAGON_ARCH_V2 |
| 40 | bool |
| 41 | |
| 42 | config HEXAGON_ARCH_V3 |
| 43 | bool |
| 44 | |
| 45 | config HEXAGON_ARCH_V4 |
| 46 | bool |
| 47 | |
| 48 | config FRAME_POINTER |
| 49 | def_bool y |
| 50 | |
| 51 | config LOCKDEP_SUPPORT |
| 52 | def_bool y |
| 53 | |
| 54 | config PCI |
| 55 | def_bool n |
| 56 | |
| 57 | config EARLY_PRINTK |
| 58 | def_bool y |
| 59 | |
| 60 | config KTIME_SCALAR |
| 61 | def_bool y |
| 62 | |
| 63 | config MMU |
| 64 | def_bool y |
| 65 | |
| 66 | config TRACE_IRQFLAGS_SUPPORT |
| 67 | def_bool y |
| 68 | |
| 69 | config GENERIC_CSUM |
| 70 | def_bool y |
| 71 | |
| 72 | # |
| 73 | # Use the generic interrupt handling code in kernel/irq/: |
| 74 | # |
| 75 | config GENERIC_IRQ_PROBE |
| 76 | def_bool y |
| 77 | |
Richard Kuo | e95bf45 | 2011-10-31 18:55:58 -0500 | [diff] [blame] | 78 | #config ZONE_DMA |
| 79 | # bool |
| 80 | # default y |
| 81 | |
| 82 | config HAS_DMA |
| 83 | bool |
| 84 | select HAVE_DMA_ATTRS |
| 85 | default y |
| 86 | |
| 87 | config NEED_SG_DMA_LENGTH |
| 88 | def_bool y |
| 89 | |
| 90 | config RWSEM_GENERIC_SPINLOCK |
| 91 | def_bool n |
| 92 | |
| 93 | config RWSEM_XCHGADD_ALGORITHM |
| 94 | def_bool y |
| 95 | |
| 96 | config GENERIC_FIND_NEXT_BIT |
| 97 | def_bool y |
| 98 | |
| 99 | config GENERIC_HWEIGHT |
| 100 | def_bool y |
| 101 | |
| 102 | config GENERIC_TIME |
| 103 | def_bool y |
| 104 | |
| 105 | config GENERIC_CLOCKEVENTS |
| 106 | def_bool y |
| 107 | |
| 108 | config GENERIC_CLOCKEVENTS_BROADCAST |
| 109 | def_bool y |
| 110 | |
| 111 | config STACKTRACE_SUPPORT |
| 112 | def_bool y |
| 113 | select STACKTRACE |
| 114 | |
| 115 | config GENERIC_BUG |
| 116 | def_bool y |
| 117 | depends on BUG |
| 118 | |
| 119 | config BUG |
| 120 | def_bool y |
| 121 | |
| 122 | menu "Machine selection" |
| 123 | |
| 124 | choice |
| 125 | prompt "System type" |
| 126 | default HEXAGON_ARCH_V2 |
| 127 | |
| 128 | config HEXAGON_COMET |
| 129 | bool "Comet Board" |
| 130 | select HEXAGON_ARCH_V2 |
| 131 | ---help--- |
| 132 | Support for the Comet platform. |
| 133 | |
| 134 | endchoice |
| 135 | |
| 136 | config HEXAGON_VM |
| 137 | def_bool y |
| 138 | |
| 139 | config CMDLINE |
| 140 | string "Default kernel command string" |
| 141 | default "" |
| 142 | help |
| 143 | On some platforms, there is currently no way for the boot loader |
| 144 | to pass arguments to the kernel. For these, you should supply some |
| 145 | command-line options at build time by entering them here. At a |
| 146 | minimum, you should specify the memory size and the root device |
| 147 | (e.g., mem=64M root=/dev/nfs). |
| 148 | |
| 149 | config HEXAGON_ANGEL_TRAPS |
| 150 | bool "Use Angel Traps" |
| 151 | default n |
| 152 | ---help--- |
| 153 | Enable angel debug traps (for printk's). |
| 154 | |
| 155 | config SMP |
| 156 | bool "Multi-Processing support" |
| 157 | ---help--- |
| 158 | Enables SMP support in the kernel. If unsure, say "Y" |
| 159 | |
| 160 | config NR_CPUS |
| 161 | int "Maximum number of CPUs" if SMP |
| 162 | range 2 6 if SMP |
| 163 | default "1" if !SMP |
| 164 | default "6" if SMP |
| 165 | ---help--- |
| 166 | This allows you to specify the maximum number of CPUs which this |
| 167 | kernel will support. The maximum supported value is 6 and the |
| 168 | minimum value which makes sense is 2. |
| 169 | |
| 170 | This is purely to save memory - each supported CPU adds |
| 171 | approximately eight kilobytes to the kernel image. |
| 172 | |
| 173 | choice |
| 174 | prompt "Kernel page size" |
| 175 | default PAGE_SIZE_4KB |
| 176 | ---help--- |
| 177 | Changes the default page size; use with caution. |
| 178 | |
| 179 | config PAGE_SIZE_4KB |
| 180 | bool "4KB" |
| 181 | |
| 182 | config PAGE_SIZE_16KB |
| 183 | bool "16KB" |
| 184 | |
| 185 | config PAGE_SIZE_64KB |
| 186 | bool "64KB" |
| 187 | |
| 188 | config PAGE_SIZE_256KB |
| 189 | bool "256KB" |
| 190 | |
| 191 | endchoice |
| 192 | |
| 193 | source "mm/Kconfig" |
| 194 | |
| 195 | source "kernel/Kconfig.hz" |
| 196 | source "kernel/time/Kconfig" |
| 197 | |
| 198 | config GENERIC_GPIO |
| 199 | bool "Generic GPIO support" |
| 200 | default n |
| 201 | |
| 202 | endmenu |
| 203 | |
| 204 | source "init/Kconfig" |
| 205 | source "drivers/Kconfig" |
| 206 | source "fs/Kconfig" |
| 207 | |
| 208 | menu "Executable File Formats" |
| 209 | source "fs/Kconfig.binfmt" |
| 210 | endmenu |
| 211 | |
| 212 | source "net/Kconfig" |
| 213 | source "security/Kconfig" |
| 214 | source "crypto/Kconfig" |
| 215 | source "lib/Kconfig" |
| 216 | |
| 217 | menu "Kernel hacking" |
| 218 | source "lib/Kconfig.debug" |
| 219 | endmenu |