arch/nios2/platform/Kconfig.platform

Source file repositories/reference/linux-study-clean/arch/nios2/platform/Kconfig.platform

File Facts

System
Linux kernel
Corpus path
arch/nios2/platform/Kconfig.platform
Extension
.platform
Size
4485 bytes
Lines
150
Domain
Architecture Layer
Bucket
arch/nios2
Inferred role
Architecture Layer: arch/nios2
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only
menu "Platform options"

comment "Memory settings"

config NIOS2_MEM_BASE
	hex "Memory base address"
	default "0x00000000"
	help
	  This is the physical address of the memory that the kernel will run
	  from. This address is used to link the kernel and setup initial memory
	  management. You should take the raw memory address without any MMU
	  or cache bits set.
	  Please not that this address is used directly so you have to manually
	  do address translation if it's connected to a bridge.

comment "Device tree"

config NIOS2_DTB_AT_PHYS_ADDR
	bool "DTB at physical address"
	help
	  When enabled you can select a physical address to load the dtb from.
	  Normally this address is passed by a bootloader such as u-boot but
	  using this you can use a devicetree without a bootloader.
	  This way you can store a devicetree in NOR flash or an onchip rom.
	  Please note that this address is used directly so you have to manually
	  do address translation if it's connected to a bridge. Also take into
	  account that when using an MMU you'd have to ad 0xC0000000 to your
	  address

config NIOS2_DTB_PHYS_ADDR
	hex "DTB Address"
	depends on NIOS2_DTB_AT_PHYS_ADDR
	default "0xC0000000"
	help
	  Physical address of a dtb blob.

config BUILTIN_DTB
	bool "Compile and link device tree into kernel image"
	depends on !COMPILE_TEST
	select GENERIC_BUILTIN_DTB
	help
	  This allows you to specify a dts (device tree source) file
	  which will be compiled and linked into the kernel image.

config BUILTIN_DTB_NAME
	string "Built-in device tree name"
	depends on BUILTIN_DTB
	default ""
	help
	  Relative path to the device tree without suffix describing your
	  system.

comment "Nios II instructions"

config NIOS2_ARCH_REVISION
	int "Select Nios II architecture revision"
	range 1 2
	default 1
	help
	  Select between Nios II R1 and Nios II R2 . The architectures
	  are binary incompatible. Default is R1 .

config NIOS2_HW_MUL_SUPPORT
	bool "Enable MUL instruction"
	help
	  Set to true if you configured the Nios II to include the MUL
	  instruction.  This will enable the -mhw-mul compiler flag.

config NIOS2_HW_MULX_SUPPORT

Annotation

Implementation Notes