1 menu "Platform options"
3 comment "Memory settings"
6 hex "Memory base address"
9 This is the physical address of the memory that the kernel will run
10 from. This address is used to link the kernel and setup initial memory
11 management. You should take the raw memory address without any MMU
13 Please not that this address is used directly so you have to manually
14 do address translation if it's connected to a bridge.
18 config NIOS2_DTB_AT_PHYS_ADDR
19 bool "DTB at physical address"
22 When enabled you can select a physical address to load the dtb from.
23 Normally this address is passed by a bootloader such as u-boot but
24 using this you can use a devicetree without a bootloader.
25 This way you can store a devicetree in NOR flash or an onchip rom.
26 Please note that this address is used directly so you have to manually
27 do address translation if it's connected to a bridge. Also take into
28 account that when using an MMU you'd have to ad 0xC0000000 to your
31 config NIOS2_DTB_PHYS_ADDR
33 depends on NIOS2_DTB_AT_PHYS_ADDR
36 Physical address of a dtb blob.
38 config NIOS2_DTB_SOURCE_BOOL
39 bool "Compile and link device tree into kernel image"
42 This allows you to specify a dts (device tree source) file
43 which will be compiled and linked into the kernel image.
45 config NIOS2_DTB_SOURCE
46 string "Device tree source file"
47 depends on NIOS2_DTB_SOURCE_BOOL
50 Absolute path to the device tree source (dts) file describing your
53 comment "Nios II instructions"
55 config NIOS2_ARCH_REVISION
56 int "Select Nios II architecture revision"
60 Select between Nios II R1 and Nios II R2 . The architectures
61 are binary incompatible. Default is R1 .
63 config NIOS2_HW_MUL_SUPPORT
64 bool "Enable MUL instruction"
67 Set to true if you configured the Nios II to include the MUL
68 instruction. This will enable the -mhw-mul compiler flag.
70 config NIOS2_HW_MULX_SUPPORT
71 bool "Enable MULX instruction"
74 Set to true if you configured the Nios II to include the MULX
75 instruction. Enables the -mhw-mulx compiler flag.
77 config NIOS2_HW_DIV_SUPPORT
78 bool "Enable DIV instruction"
81 Set to true if you configured the Nios II to include the DIV
82 instruction. Enables the -mhw-div compiler flag.
84 config NIOS2_BMX_SUPPORT
85 bool "Enable BMX instructions"
86 depends on NIOS2_ARCH_REVISION = 2
89 Set to true if you configured the Nios II R2 to include
90 the BMX Bit Manipulation Extension instructions. Enables
91 the -mbmx compiler flag.
93 config NIOS2_CDX_SUPPORT
94 bool "Enable CDX instructions"
95 depends on NIOS2_ARCH_REVISION = 2
98 Set to true if you configured the Nios II R2 to include
99 the CDX Bit Manipulation Extension instructions. Enables
100 the -mcdx compiler flag.
102 config NIOS2_FPU_SUPPORT
103 bool "Custom floating point instr support"
106 Enables the -mcustom-fpu-cfg=60-1 compiler flag.
108 config NIOS2_CI_SWAB_SUPPORT
109 bool "Byteswap custom instruction"
112 Use the byteswap (endian converter) Nios II custom instruction provided
113 by Altera and which can be enabled in QSYS builder. This accelerates
114 endian conversions in the kernel (e.g. ntohs).
116 config NIOS2_CI_SWAB_NO
117 int "Byteswap custom instruction number" if NIOS2_CI_SWAB_SUPPORT
120 Number of the instruction as configured in QSYS Builder.
122 comment "Cache settings"
124 config CUSTOM_CACHE_SETTINGS
125 bool "Custom cache settings"
127 This option allows you to tweak the cache settings used during early
128 boot (where the information from device tree is not yet available).
129 There should be no reason to change these values. Linux will work
130 perfectly fine, even if the Nios II is configured with smaller caches.
132 Say N here unless you know what you are doing.
134 config NIOS2_DCACHE_SIZE
135 hex "D-Cache size" if CUSTOM_CACHE_SETTINGS
139 Maximum possible data cache size.
141 config NIOS2_DCACHE_LINE_SIZE
142 hex "D-Cache line size" if CUSTOM_CACHE_SETTINGS
146 Minimum possible data cache line size.
148 config NIOS2_ICACHE_SIZE
149 hex "I-Cache size" if CUSTOM_CACHE_SETTINGS
153 Maximum possible instruction cache size.