Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 2 | config NIOS2 |
| 3 | def_bool y |
Daniel Lezcano | bb0eb05 | 2017-05-26 19:34:11 +0200 | [diff] [blame] | 4 | select TIMER_OF |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 5 | select GENERIC_ATOMIC64 |
| 6 | select GENERIC_CLOCKEVENTS |
| 7 | select GENERIC_CPU_DEVICES |
| 8 | select GENERIC_IRQ_PROBE |
| 9 | select GENERIC_IRQ_SHOW |
Ley Foon Tan | 7f1e614 | 2017-05-08 17:14:14 +0800 | [diff] [blame] | 10 | select GENERIC_STRNCPY_FROM_USER |
| 11 | select GENERIC_STRNLEN_USER |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 12 | select HAVE_ARCH_TRACEHOOK |
Ley Foon Tan | d16d2be | 2015-02-16 19:26:43 +0800 | [diff] [blame] | 13 | select HAVE_ARCH_KGDB |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 14 | select IRQ_DOMAIN |
| 15 | select MODULES_USE_ELF_RELA |
| 16 | select OF |
| 17 | select OF_EARLY_FLATTREE |
| 18 | select SOC_BUS |
| 19 | select SPARSE_IRQ |
| 20 | select USB_ARCH_HAS_HCD if USB_SUPPORT |
Zhaoxiu Zeng | fff7fb0 | 2016-05-20 17:03:57 -0700 | [diff] [blame] | 21 | select CPU_NO_EFFICIENT_FFS |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 22 | |
| 23 | config GENERIC_CSUM |
| 24 | def_bool y |
| 25 | |
| 26 | config GENERIC_HWEIGHT |
| 27 | def_bool y |
| 28 | |
| 29 | config GENERIC_CALIBRATE_DELAY |
| 30 | def_bool y |
| 31 | |
| 32 | config NO_IOPORT_MAP |
| 33 | def_bool y |
| 34 | |
| 35 | config HAS_DMA |
| 36 | def_bool y |
| 37 | |
| 38 | config FPU |
| 39 | def_bool n |
| 40 | |
| 41 | config SWAP |
| 42 | def_bool n |
| 43 | |
| 44 | config RWSEM_GENERIC_SPINLOCK |
| 45 | def_bool y |
| 46 | |
| 47 | config TRACE_IRQFLAGS_SUPPORT |
| 48 | def_bool n |
| 49 | |
| 50 | source "init/Kconfig" |
| 51 | |
| 52 | menu "Kernel features" |
| 53 | |
| 54 | source "kernel/Kconfig.preempt" |
| 55 | |
| 56 | source "kernel/Kconfig.freezer" |
| 57 | |
| 58 | source "kernel/Kconfig.hz" |
| 59 | |
| 60 | source "mm/Kconfig" |
| 61 | |
| 62 | config FORCE_MAX_ZONEORDER |
| 63 | int "Maximum zone order" |
| 64 | range 9 20 |
| 65 | default "11" |
| 66 | help |
| 67 | The kernel memory allocator divides physically contiguous memory |
| 68 | blocks into "zones", where each zone is a power of two number of |
| 69 | pages. This option selects the largest power of two that the kernel |
| 70 | keeps in the memory allocator. If you need to allocate very large |
| 71 | blocks of physically contiguous memory, then you may need to |
| 72 | increase this value. |
| 73 | |
| 74 | This config option is actually maximum order plus one. For example, |
| 75 | a value of 11 means that the largest free memory block is 2^10 pages. |
| 76 | |
| 77 | endmenu |
| 78 | |
| 79 | source "arch/nios2/platform/Kconfig.platform" |
| 80 | |
| 81 | menu "Processor type and features" |
| 82 | |
| 83 | config MMU |
| 84 | def_bool y |
| 85 | |
Tobias Klauser | 6e5c8f5 | 2014-11-24 16:13:39 +0800 | [diff] [blame] | 86 | config NR_CPUS |
| 87 | int |
| 88 | default "1" |
| 89 | |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 90 | config NIOS2_ALIGNMENT_TRAP |
| 91 | bool "Catch alignment trap" |
| 92 | default y |
| 93 | help |
| 94 | Nios II CPUs cannot fetch/store data which is not bus aligned, |
| 95 | i.e., a 2 or 4 byte fetch must start at an address divisible by |
| 96 | 2 or 4. Any non-aligned load/store instructions will be trapped and |
| 97 | emulated in software if you say Y here, which has a performance |
| 98 | impact. |
| 99 | |
| 100 | comment "Boot options" |
| 101 | |
| 102 | config CMDLINE_BOOL |
| 103 | bool "Default bootloader kernel arguments" |
| 104 | default y |
| 105 | |
| 106 | config CMDLINE |
| 107 | string "Default kernel command string" |
| 108 | default "" |
| 109 | depends on CMDLINE_BOOL |
| 110 | help |
| 111 | On some platforms, there is currently no way for the boot loader to |
| 112 | pass arguments to the kernel. For these platforms, you can supply |
| 113 | some command-line options at build time by entering them here. In |
| 114 | other cases you can specify kernel args so that you don't have |
| 115 | to set them up in board prom initialization routines. |
| 116 | |
| 117 | config CMDLINE_FORCE |
| 118 | bool "Force default kernel command string" |
| 119 | depends on CMDLINE_BOOL |
| 120 | help |
| 121 | Set this to have arguments from the default kernel command string |
| 122 | override those passed by the boot loader. |
| 123 | |
| 124 | config NIOS2_CMDLINE_IGNORE_DTB |
| 125 | bool "Ignore kernel command string from DTB" |
Tobias Klauser | 2b2b407 | 2014-11-24 16:40:04 +0800 | [diff] [blame] | 126 | depends on CMDLINE_BOOL |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 127 | depends on !CMDLINE_FORCE |
| 128 | default y |
| 129 | help |
| 130 | Set this to ignore the bootargs property from the devicetree's |
| 131 | chosen node and fall back to CMDLINE if nothing is passed. |
| 132 | |
| 133 | config NIOS2_PASS_CMDLINE |
| 134 | bool "Passed kernel command line from u-boot" |
| 135 | default n |
| 136 | help |
| 137 | Use bootargs env variable from u-boot for kernel command line. |
| 138 | will override "Default kernel command string". |
| 139 | Say N if you are unsure. |
| 140 | |
Ley Foon Tan | 0162362 | 2015-02-10 23:26:34 +0800 | [diff] [blame] | 141 | config NIOS2_BOOT_LINK_OFFSET |
| 142 | hex "Link address offset for booting" |
| 143 | default "0x00500000" |
| 144 | help |
| 145 | This option allows you to set the link address offset of the zImage. |
| 146 | This can be useful if you are on a board which has a small amount of |
| 147 | memory. |
| 148 | |
Ley Foon Tan | 2fc8483 | 2014-11-06 15:20:19 +0800 | [diff] [blame] | 149 | endmenu |
| 150 | |
| 151 | menu "Advanced setup" |
| 152 | |
| 153 | config ADVANCED_OPTIONS |
| 154 | bool "Prompt for advanced kernel configuration options" |
| 155 | help |
| 156 | |
| 157 | comment "Default settings for advanced configuration options are used" |
| 158 | depends on !ADVANCED_OPTIONS |
| 159 | |
| 160 | config NIOS2_KERNEL_MMU_REGION_BASE_BOOL |
| 161 | bool "Set custom kernel MMU region base address" |
| 162 | depends on ADVANCED_OPTIONS |
| 163 | help |
| 164 | This option allows you to set the virtual address of the kernel MMU region. |
| 165 | |
| 166 | Say N here unless you know what you are doing. |
| 167 | |
| 168 | config NIOS2_KERNEL_MMU_REGION_BASE |
| 169 | hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL |
| 170 | default "0x80000000" |
| 171 | help |
| 172 | This option allows you to set the virtual base address of the kernel MMU region. |
| 173 | |
| 174 | config NIOS2_KERNEL_REGION_BASE_BOOL |
| 175 | bool "Set custom kernel region base address" |
| 176 | depends on ADVANCED_OPTIONS |
| 177 | help |
| 178 | This option allows you to set the virtual address of the kernel region. |
| 179 | |
| 180 | Say N here unless you know what you are doing. |
| 181 | |
| 182 | config NIOS2_KERNEL_REGION_BASE |
| 183 | hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL |
| 184 | default "0xc0000000" |
| 185 | |
| 186 | config NIOS2_IO_REGION_BASE_BOOL |
| 187 | bool "Set custom I/O region base address" |
| 188 | depends on ADVANCED_OPTIONS |
| 189 | help |
| 190 | This option allows you to set the virtual address of the I/O region. |
| 191 | |
| 192 | Say N here unless you know what you are doing. |
| 193 | |
| 194 | config NIOS2_IO_REGION_BASE |
| 195 | hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL |
| 196 | default "0xe0000000" |
| 197 | |
| 198 | endmenu |
| 199 | |
| 200 | menu "Executable file formats" |
| 201 | |
| 202 | source "fs/Kconfig.binfmt" |
| 203 | |
| 204 | endmenu |
| 205 | |
| 206 | source "net/Kconfig" |
| 207 | |
| 208 | source "drivers/Kconfig" |
| 209 | |
| 210 | source "fs/Kconfig" |
| 211 | |
| 212 | source "arch/nios2/Kconfig.debug" |
| 213 | |
| 214 | source "security/Kconfig" |
| 215 | |
| 216 | source "crypto/Kconfig" |
| 217 | |
| 218 | source "lib/Kconfig" |