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