# SPDX-License-Identifier: GPL-2.0
config [31mCONFIG_NIOS2[0m
def_bool y
select [31mCONFIG_ARCH_32BIT_OFF_T[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE[0m
select [31mCONFIG_ARCH_HAS_UNCACHED_SEGMENT[0m
select [31mCONFIG_ARCH_NO_SWAP[0m
select [31mCONFIG_TIMER_OF[0m
select [31mCONFIG_GENERIC_ATOMIC64[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_GENERIC_CPU_DEVICES[0m
select [31mCONFIG_GENERIC_IRQ_PROBE[0m
select [31mCONFIG_GENERIC_IRQ_SHOW[0m
select [31mCONFIG_GENERIC_STRNCPY_FROM_USER[0m
select [31mCONFIG_GENERIC_STRNLEN_USER[0m
select [31mCONFIG_HAVE_ARCH_TRACEHOOK[0m
select [31mCONFIG_HAVE_ARCH_KGDB[0m
select [31mCONFIG_IRQ_DOMAIN[0m
select [31mCONFIG_MODULES_USE_ELF_RELA[0m
select [31mCONFIG_OF[0m
select [31mCONFIG_OF_EARLY_FLATTREE[0m
select [31mCONFIG_SOC_BUS[0m
select [31mCONFIG_SPARSE_IRQ[0m
select [31mCONFIG_USB_ARCH_HAS_HCD[0m if [31mCONFIG_USB_SUPPORT[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
select MMU_GATHER_NO_RANGE if [31mCONFIG_MMU[0m
config [31mCONFIG_GENERIC_CSUM[0m
def_bool y
config [31mCONFIG_GENERIC_HWEIGHT[0m
def_bool y
config [31mCONFIG_GENERIC_CALIBRATE_DELAY[0m
def_bool y
config [31mCONFIG_NO_IOPORT_MAP[0m
def_bool y
config [31mCONFIG_FPU[0m
def_bool n
config [31mCONFIG_TRACE_IRQFLAGS_SUPPORT[0m
def_bool n
menu "Kernel features"
source "kernel/Kconfig.hz"
config [31mCONFIG_FORCE_MAX_ZONEORDER[0m
int "Maximum zone order"
range 9 20
default "11"
help
The kernel memory allocator divides physically contiguous memory
blocks into "zones", where each zone is a power of two number of
pages. This option selects the largest power of two that the kernel
keeps in the memory allocator. If you need to allocate very large
blocks of physically contiguous memory, then you may need to
increase this value.
This config option is actually maximum order plus one. For example,
a value of 11 means that the largest free memory block is 2^10 pages.
endmenu
source "arch/nios2/platform/Kconfig.platform"
menu "Processor type and features"
config [31mCONFIG_MMU[0m
def_bool y
config [31mCONFIG_NR_CPUS[0m
int
default "1"
config [31mCONFIG_NIOS2_ALIGNMENT_TRAP[0m
bool "Catch alignment trap"
default y
help
Nios II CPUs cannot fetch/store data which is not bus aligned,
i.e., a 2 or 4 byte fetch must start at an address divisible by
2 or 4. Any non-aligned load/store instructions will be trapped and
emulated in software if you say Y here, which has a performance
impact.
comment "Boot options"
config [31mCONFIG_CMDLINE_BOOL[0m
bool "Default bootloader kernel arguments"
default y
config [31mCONFIG_CMDLINE[0m
string "Default kernel command string"
default ""
depends on [31mCONFIG_CMDLINE_BOOL[0m
help
On some platforms, there is currently no way for the boot loader to
pass arguments to the kernel. For these platforms, you can supply
some command-line options at build time by entering them here. In
other cases you can specify kernel args so that you don't have
to set them up in board prom initialization routines.
config [31mCONFIG_CMDLINE_FORCE[0m
bool "Force default kernel command string"
depends on [31mCONFIG_CMDLINE_BOOL[0m
help
Set this to have arguments from the default kernel command string
override those passed by the boot loader.
config [31mCONFIG_NIOS2_CMDLINE_IGNORE_DTB[0m
bool "Ignore kernel command string from DTB"
depends on [31mCONFIG_CMDLINE_BOOL[0m
depends on ![31mCONFIG_CMDLINE_FORCE[0m
default y
help
Set this to ignore the bootargs property from the devicetree's
chosen node and fall back to [31mCONFIG_CMDLINE[0m if nothing is passed.
config [31mCONFIG_NIOS2_PASS_CMDLINE[0m
bool "Passed kernel command line from u-boot"
help
Use bootargs env variable from u-boot for kernel command line.
will override "Default kernel command string".
Say N if you are unsure.
config [31mCONFIG_NIOS2_BOOT_LINK_OFFSET[0m
hex "Link address offset for booting"
default "0x00500000"
help
This option allows you to set the link address offset of the zImage.
This can be useful if you are on a board which has a small amount of
memory.
endmenu
menu "Advanced setup"
config [31mCONFIG_ADVANCED_OPTIONS[0m
bool "Prompt for advanced kernel configuration options"
comment "Default settings for advanced configuration options are used"
depends on ![31mCONFIG_ADVANCED_OPTIONS[0m
config [31mCONFIG_NIOS2_KERNEL_MMU_REGION_BASE_BOOL[0m
bool "Set custom kernel MMU region base address"
depends on [31mCONFIG_ADVANCED_OPTIONS[0m
help
This option allows you to set the virtual address of the kernel [31mCONFIG_MMU[0m region.
Say N here unless you know what you are doing.
config [31mCONFIG_NIOS2_KERNEL_MMU_REGION_BASE[0m
hex "Virtual base address of the kernel MMU region " if [31mCONFIG_NIOS2_KERNEL_MMU_REGION_BASE_BOOL[0m
default "0x80000000"
help
This option allows you to set the virtual base address of the kernel [31mCONFIG_MMU[0m region.
config [31mCONFIG_NIOS2_KERNEL_REGION_BASE_BOOL[0m
bool "Set custom kernel region base address"
depends on [31mCONFIG_ADVANCED_OPTIONS[0m
help
This option allows you to set the virtual address of the kernel region.
Say N here unless you know what you are doing.
config [31mCONFIG_NIOS2_KERNEL_REGION_BASE[0m
hex "Virtual base address of the kernel region " if [31mCONFIG_NIOS2_KERNEL_REGION_BASE_BOOL[0m
default "0xc0000000"
config [31mCONFIG_NIOS2_IO_REGION_BASE_BOOL[0m
bool "Set custom I/O region base address"
depends on [31mCONFIG_ADVANCED_OPTIONS[0m
help
This option allows you to set the virtual address of the I/O region.
Say N here unless you know what you are doing.
config [31mCONFIG_NIOS2_IO_REGION_BASE[0m
hex "Virtual base address of the I/O region" if [31mCONFIG_NIOS2_IO_REGION_BASE_BOOL[0m
default "0xe0000000"
endmenu