1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 config NIOS2 !! 2 config M68K 3 def_bool y !! 3 bool 4 select ARCH_32BIT_OFF_T !! 4 default y 5 select ARCH_HAS_CPU_CACHE_ALIASING !! 5 select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA 6 select ARCH_HAS_DMA_PREP_COHERENT !! 6 select ARCH_MIGHT_HAVE_PC_PARPORT if ISA 7 select ARCH_HAS_SYNC_DMA_FOR_CPU !! 7 select ARCH_NO_COHERENT_DMA_MMAP if !MMU 8 select ARCH_HAS_SYNC_DMA_FOR_DEVICE !! 8 select ARCH_NO_PREEMPT if !COLDFIRE 9 select ARCH_HAS_DMA_SET_UNCACHED !! 9 select HAVE_IDE 10 select ARCH_NO_SWAP !! 10 select HAVE_AOUT if MMU 11 select COMMON_CLK !! 11 select HAVE_DEBUG_BUGVERBOSE 12 select TIMER_OF !! 12 select GENERIC_IRQ_SHOW 13 select GENERIC_ATOMIC64 13 select GENERIC_ATOMIC64 >> 14 select HAVE_UID16 >> 15 select VIRT_TO_BUS >> 16 select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS 14 select GENERIC_CPU_DEVICES 17 select GENERIC_CPU_DEVICES 15 select GENERIC_IRQ_PROBE !! 18 select GENERIC_IOMAP 16 select GENERIC_IRQ_SHOW !! 19 select GENERIC_STRNCPY_FROM_USER if MMU 17 select HAVE_ARCH_TRACEHOOK !! 20 select GENERIC_STRNLEN_USER if MMU 18 select HAVE_ARCH_KGDB !! 21 select ARCH_WANT_IPC_PARSE_VERSION 19 select HAVE_PAGE_SIZE_4KB !! 22 select ARCH_USES_GETTIMEOFFSET if MMU && !COLDFIRE 20 select IRQ_DOMAIN !! 23 select HAVE_FUTEX_CMPXCHG if MMU && FUTEX 21 select LOCK_MM_AND_FIND_VMA !! 24 select HAVE_MOD_ARCH_SPECIFIC >> 25 select MODULES_USE_ELF_REL 22 select MODULES_USE_ELF_RELA 26 select MODULES_USE_ELF_RELA 23 select OF !! 27 select OLD_SIGSUSPEND3 24 select OF_EARLY_FLATTREE !! 28 select OLD_SIGACTION 25 select SOC_BUS !! 29 select ARCH_DISCARD_MEMBLOCK 26 select SPARSE_IRQ << 27 select USB_ARCH_HAS_HCD if USB_SUPPORT << 28 select CPU_NO_EFFICIENT_FFS << 29 select MMU_GATHER_NO_RANGE if MMU << 30 30 31 config GENERIC_CSUM !! 31 config CPU_BIG_ENDIAN 32 def_bool y 32 def_bool y 33 33 34 config GENERIC_HWEIGHT !! 34 config RWSEM_GENERIC_SPINLOCK 35 def_bool y !! 35 bool 36 !! 36 default y 37 config GENERIC_CALIBRATE_DELAY << 38 def_bool y << 39 37 40 config NO_IOPORT_MAP !! 38 config RWSEM_XCHGADD_ALGORITHM 41 def_bool y !! 39 bool 42 40 43 config FPU !! 41 config ARCH_HAS_ILOG2_U32 44 def_bool n !! 42 bool 45 43 46 menu "Kernel features" !! 44 config ARCH_HAS_ILOG2_U64 >> 45 bool 47 46 48 source "kernel/Kconfig.hz" !! 47 config GENERIC_HWEIGHT >> 48 bool >> 49 default y 49 50 50 config ARCH_FORCE_MAX_ORDER !! 51 config GENERIC_CALIBRATE_DELAY 51 int "Order of maximal physically conti !! 52 bool 52 default "10" !! 53 default y 53 help << 54 The kernel page allocator limits the << 55 contiguous allocations. The limit is << 56 defines the maximal power of two of << 57 allocated as a single contiguous blo << 58 overriding the default setting when << 59 large blocks of physically contiguou << 60 54 61 Don't change if unsure. !! 55 config GENERIC_CSUM >> 56 bool 62 57 63 endmenu !! 58 config TIME_LOW_RES >> 59 bool >> 60 default y 64 61 65 source "arch/nios2/platform/Kconfig.platform" !! 62 config NO_IOPORT_MAP >> 63 def_bool y 66 64 67 menu "Processor type and features" !! 65 config NO_DMA >> 66 def_bool (MMU && SUN3) || (!MMU && !COLDFIRE) 68 67 69 config MMU !! 68 config ZONE_DMA 70 def_bool y !! 69 bool >> 70 default y 71 71 72 config NR_CPUS !! 72 config HZ 73 int 73 int 74 default "1" !! 74 default 1000 if CLEOPATRA >> 75 default 100 75 76 76 config NIOS2_ALIGNMENT_TRAP !! 77 config PGTABLE_LEVELS 77 bool "Catch alignment trap" !! 78 default 2 if SUN3 || COLDFIRE 78 default y !! 79 default 3 79 help << 80 Nios II CPUs cannot fetch/store data << 81 i.e., a 2 or 4 byte fetch must start << 82 2 or 4. Any non-aligned load/store i << 83 emulated in software if you say Y he << 84 impact. << 85 << 86 comment "Boot options" << 87 << 88 config CMDLINE_BOOL << 89 bool "Default bootloader kernel argume << 90 default y << 91 << 92 config CMDLINE << 93 string "Default kernel command string" << 94 default "" << 95 depends on CMDLINE_BOOL << 96 help << 97 On some platforms, there is currentl << 98 pass arguments to the kernel. For th << 99 some command-line options at build t << 100 other cases you can specify kernel a << 101 to set them up in board prom initial << 102 << 103 config CMDLINE_FORCE << 104 bool "Force default kernel command str << 105 depends on CMDLINE_BOOL << 106 help << 107 Set this to have arguments from the << 108 override those passed by the boot lo << 109 80 110 config NIOS2_CMDLINE_IGNORE_DTB !! 81 config MMU 111 bool "Ignore kernel command string fro !! 82 bool "MMU-based Paged Memory Management Support" 112 depends on CMDLINE_BOOL << 113 depends on !CMDLINE_FORCE << 114 default y 83 default y 115 help 84 help 116 Set this to ignore the bootargs prop !! 85 Select if you want MMU-based virtualised addressing space 117 chosen node and fall back to CMDLINE !! 86 support by paged memory management. If unsure, say 'Y'. 118 87 119 config NIOS2_PASS_CMDLINE !! 88 config MMU_MOTOROLA 120 bool "Passed kernel command line from !! 89 bool 121 help << 122 Use bootargs env variable from u-boo << 123 will override "Default kernel comman << 124 Say N if you are unsure. << 125 << 126 config NIOS2_BOOT_LINK_OFFSET << 127 hex "Link address offset for booting" << 128 default "0x00500000" << 129 help << 130 This option allows you to set the li << 131 This can be useful if you are on a b << 132 memory. << 133 90 134 endmenu !! 91 config MMU_COLDFIRE >> 92 bool >> 93 >> 94 config MMU_SUN3 >> 95 bool >> 96 depends on MMU && !MMU_MOTOROLA && !MMU_COLDFIRE 135 97 136 menu "Advanced setup" !! 98 config KEXEC >> 99 bool "kexec system call" >> 100 depends on M68KCLASSIC >> 101 select KEXEC_CORE >> 102 help >> 103 kexec is a system call that implements the ability to shutdown your >> 104 current kernel, and to start another kernel. It is like a reboot >> 105 but it is independent of the system firmware. And like a reboot >> 106 you can start any kernel with it, not just Linux. 137 107 138 config ADVANCED_OPTIONS !! 108 The name comes from the similarity to the exec system call. 139 bool "Prompt for advanced kernel confi << 140 109 141 comment "Default settings for advanced configu !! 110 It is an ongoing process to be certain the hardware in a machine 142 depends on !ADVANCED_OPTIONS !! 111 is properly shutdown, so do not be surprised if this code does not >> 112 initially work for you. As of this writing the exact hardware >> 113 interface is strongly in flux, so no good recommendation can be >> 114 made. 143 115 144 config NIOS2_KERNEL_MMU_REGION_BASE_BOOL !! 116 config BOOTINFO_PROC 145 bool "Set custom kernel MMU region bas !! 117 bool "Export bootinfo in procfs" 146 depends on ADVANCED_OPTIONS !! 118 depends on KEXEC && M68KCLASSIC 147 help 119 help 148 This option allows you to set the vi !! 120 Say Y to export the bootinfo used to boot the kernel in a >> 121 "bootinfo" file in procfs. This is useful with kexec. 149 122 150 Say N here unless you know what you !! 123 menu "Platform setup" 151 124 152 config NIOS2_KERNEL_MMU_REGION_BASE !! 125 source "arch/m68k/Kconfig.cpu" 153 hex "Virtual base address of the kerne << 154 default "0x80000000" << 155 help << 156 This option allows you to set the vi << 157 126 158 config NIOS2_KERNEL_REGION_BASE_BOOL !! 127 source "arch/m68k/Kconfig.machine" 159 bool "Set custom kernel region base ad << 160 depends on ADVANCED_OPTIONS << 161 help << 162 This option allows you to set the vi << 163 128 164 Say N here unless you know what you !! 129 source "arch/m68k/Kconfig.bus" 165 130 166 config NIOS2_KERNEL_REGION_BASE !! 131 endmenu 167 hex "Virtual base address of the kerne << 168 default "0xc0000000" << 169 132 170 config NIOS2_IO_REGION_BASE_BOOL !! 133 menu "Kernel Features" 171 bool "Set custom I/O region base addre << 172 depends on ADVANCED_OPTIONS << 173 help << 174 This option allows you to set the vi << 175 134 176 Say N here unless you know what you !! 135 endmenu 177 136 178 config NIOS2_IO_REGION_BASE !! 137 if !MMU 179 hex "Virtual base address of the I/O r !! 138 menu "Power management options" 180 default "0xe0000000" !! 139 >> 140 config PM >> 141 bool "Power Management support" >> 142 help >> 143 Support processor power management modes 181 144 182 endmenu 145 endmenu >> 146 endif >> 147 >> 148 source "arch/m68k/Kconfig.devices"
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.