Linux Audio

Check our new training course

Embedded Linux training

Mar 10-20, 2025, special US time zones
Register
Loading...
v6.2
  1# SPDX-License-Identifier: GPL-2.0
  2config NIOS2
  3	def_bool y
  4	select ARCH_32BIT_OFF_T
 
  5	select ARCH_HAS_DMA_PREP_COHERENT
  6	select ARCH_HAS_SYNC_DMA_FOR_CPU
  7	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  8	select ARCH_HAS_DMA_SET_UNCACHED
  9	select ARCH_NO_SWAP
 10	select COMMON_CLK
 11	select TIMER_OF
 12	select GENERIC_ATOMIC64
 13	select GENERIC_CPU_DEVICES
 14	select GENERIC_IRQ_PROBE
 15	select GENERIC_IRQ_SHOW
 16	select HAVE_ARCH_TRACEHOOK
 17	select HAVE_ARCH_KGDB
 
 18	select IRQ_DOMAIN
 
 19	select MODULES_USE_ELF_RELA
 20	select OF
 21	select OF_EARLY_FLATTREE
 22	select SOC_BUS
 23	select SPARSE_IRQ
 24	select USB_ARCH_HAS_HCD if USB_SUPPORT
 25	select CPU_NO_EFFICIENT_FFS
 26	select MMU_GATHER_NO_RANGE if MMU
 27
 28config GENERIC_CSUM
 29	def_bool y
 30
 31config GENERIC_HWEIGHT
 32	def_bool y
 33
 34config GENERIC_CALIBRATE_DELAY
 35	def_bool y
 36
 37config NO_IOPORT_MAP
 38	def_bool y
 39
 40config FPU
 41	def_bool n
 42
 43menu "Kernel features"
 44
 45source "kernel/Kconfig.hz"
 46
 47config ARCH_FORCE_MAX_ORDER
 48	int "Maximum zone order"
 49	range 9 20
 50	default "11"
 51	help
 52	  The kernel memory allocator divides physically contiguous memory
 53	  blocks into "zones", where each zone is a power of two number of
 54	  pages.  This option selects the largest power of two that the kernel
 55	  keeps in the memory allocator.  If you need to allocate very large
 56	  blocks of physically contiguous memory, then you may need to
 57	  increase this value.
 58
 59	  This config option is actually maximum order plus one. For example,
 60	  a value of 11 means that the largest free memory block is 2^10 pages.
 61
 62endmenu
 63
 64source "arch/nios2/platform/Kconfig.platform"
 65
 66menu "Processor type and features"
 67
 68config MMU
 69	def_bool y
 70
 71config NR_CPUS
 72	int
 73	default "1"
 74
 75config NIOS2_ALIGNMENT_TRAP
 76	bool "Catch alignment trap"
 77	default y
 78	help
 79	  Nios II CPUs cannot fetch/store data which is not bus aligned,
 80	  i.e., a 2 or 4 byte fetch must start at an address divisible by
 81	  2 or 4. Any non-aligned load/store instructions will be trapped and
 82	  emulated in software if you say Y here, which has a performance
 83	  impact.
 84
 85comment "Boot options"
 86
 87config CMDLINE_BOOL
 88	bool "Default bootloader kernel arguments"
 89	default y
 90
 91config CMDLINE
 92	string "Default kernel command string"
 93	default ""
 94	depends on CMDLINE_BOOL
 95	help
 96	  On some platforms, there is currently no way for the boot loader to
 97	  pass arguments to the kernel. For these platforms, you can supply
 98	  some command-line options at build time by entering them here.  In
 99	  other cases you can specify kernel args so that you don't have
100	  to set them up in board prom initialization routines.
101
102config CMDLINE_FORCE
103	bool "Force default kernel command string"
104	depends on CMDLINE_BOOL
105	help
106	  Set this to have arguments from the default kernel command string
107	  override those passed by the boot loader.
108
109config NIOS2_CMDLINE_IGNORE_DTB
110	bool "Ignore kernel command string from DTB"
111	depends on CMDLINE_BOOL
112	depends on !CMDLINE_FORCE
113	default y
114	help
115	  Set this to ignore the bootargs property from the devicetree's
116	  chosen node and fall back to CMDLINE if nothing is passed.
117
118config NIOS2_PASS_CMDLINE
119	bool "Passed kernel command line from u-boot"
120	help
121	  Use bootargs env variable from u-boot for kernel command line.
122	  will override "Default kernel command string".
123	  Say N if you are unsure.
124
125config NIOS2_BOOT_LINK_OFFSET
126	hex "Link address offset for booting"
127	default "0x00500000"
128	help
129	  This option allows you to set the link address offset of the zImage.
130	  This can be useful if you are on a board which has a small amount of
131	  memory.
132
133endmenu
134
135menu "Advanced setup"
136
137config ADVANCED_OPTIONS
138	bool "Prompt for advanced kernel configuration options"
139
140comment "Default settings for advanced configuration options are used"
141	depends on !ADVANCED_OPTIONS
142
143config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
144	bool "Set custom kernel MMU region base address"
145	depends on ADVANCED_OPTIONS
146	help
147	  This option allows you to set the virtual address of the kernel MMU region.
148
149	  Say N here unless you know what you are doing.
150
151config NIOS2_KERNEL_MMU_REGION_BASE
152	hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
153	default "0x80000000"
154	help
155	  This option allows you to set the virtual base address of the kernel MMU region.
156
157config NIOS2_KERNEL_REGION_BASE_BOOL
158	bool "Set custom kernel region base address"
159	depends on ADVANCED_OPTIONS
160	help
161	  This option allows you to set the virtual address of the kernel region.
162
163	  Say N here unless you know what you are doing.
164
165config NIOS2_KERNEL_REGION_BASE
166	hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
167	default "0xc0000000"
168
169config NIOS2_IO_REGION_BASE_BOOL
170	bool "Set custom I/O region base address"
171	depends on ADVANCED_OPTIONS
172	help
173	  This option allows you to set the virtual address of the I/O region.
174
175	  Say N here unless you know what you are doing.
176
177config NIOS2_IO_REGION_BASE
178	hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
179	default "0xe0000000"
180
181endmenu
v6.9.4
  1# SPDX-License-Identifier: GPL-2.0
  2config NIOS2
  3	def_bool y
  4	select ARCH_32BIT_OFF_T
  5	select ARCH_HAS_CPU_CACHE_ALIASING
  6	select ARCH_HAS_DMA_PREP_COHERENT
  7	select ARCH_HAS_SYNC_DMA_FOR_CPU
  8	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  9	select ARCH_HAS_DMA_SET_UNCACHED
 10	select ARCH_NO_SWAP
 11	select COMMON_CLK
 12	select TIMER_OF
 13	select GENERIC_ATOMIC64
 14	select GENERIC_CPU_DEVICES
 15	select GENERIC_IRQ_PROBE
 16	select GENERIC_IRQ_SHOW
 17	select HAVE_ARCH_TRACEHOOK
 18	select HAVE_ARCH_KGDB
 19	select HAVE_PAGE_SIZE_4KB
 20	select IRQ_DOMAIN
 21	select LOCK_MM_AND_FIND_VMA
 22	select MODULES_USE_ELF_RELA
 23	select OF
 24	select OF_EARLY_FLATTREE
 25	select SOC_BUS
 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
 31config GENERIC_CSUM
 32	def_bool y
 33
 34config GENERIC_HWEIGHT
 35	def_bool y
 36
 37config GENERIC_CALIBRATE_DELAY
 38	def_bool y
 39
 40config NO_IOPORT_MAP
 41	def_bool y
 42
 43config FPU
 44	def_bool n
 45
 46menu "Kernel features"
 47
 48source "kernel/Kconfig.hz"
 49
 50config ARCH_FORCE_MAX_ORDER
 51	int "Order of maximal physically contiguous allocations"
 52	default "10"
 
 53	help
 54	  The kernel page allocator limits the size of maximal physically
 55	  contiguous allocations. The limit is called MAX_PAGE_ORDER and it
 56	  defines the maximal power of two of number of pages that can be
 57	  allocated as a single contiguous block. This option allows
 58	  overriding the default setting when ability to allocate very
 59	  large blocks of physically contiguous memory is required.
 60
 61	  Don't change if unsure.
 
 62
 63endmenu
 64
 65source "arch/nios2/platform/Kconfig.platform"
 66
 67menu "Processor type and features"
 68
 69config MMU
 70	def_bool y
 71
 72config NR_CPUS
 73	int
 74	default "1"
 75
 76config NIOS2_ALIGNMENT_TRAP
 77	bool "Catch alignment trap"
 78	default y
 79	help
 80	  Nios II CPUs cannot fetch/store data which is not bus aligned,
 81	  i.e., a 2 or 4 byte fetch must start at an address divisible by
 82	  2 or 4. Any non-aligned load/store instructions will be trapped and
 83	  emulated in software if you say Y here, which has a performance
 84	  impact.
 85
 86comment "Boot options"
 87
 88config CMDLINE_BOOL
 89	bool "Default bootloader kernel arguments"
 90	default y
 91
 92config CMDLINE
 93	string "Default kernel command string"
 94	default ""
 95	depends on CMDLINE_BOOL
 96	help
 97	  On some platforms, there is currently no way for the boot loader to
 98	  pass arguments to the kernel. For these platforms, you can supply
 99	  some command-line options at build time by entering them here.  In
100	  other cases you can specify kernel args so that you don't have
101	  to set them up in board prom initialization routines.
102
103config CMDLINE_FORCE
104	bool "Force default kernel command string"
105	depends on CMDLINE_BOOL
106	help
107	  Set this to have arguments from the default kernel command string
108	  override those passed by the boot loader.
109
110config NIOS2_CMDLINE_IGNORE_DTB
111	bool "Ignore kernel command string from DTB"
112	depends on CMDLINE_BOOL
113	depends on !CMDLINE_FORCE
114	default y
115	help
116	  Set this to ignore the bootargs property from the devicetree's
117	  chosen node and fall back to CMDLINE if nothing is passed.
118
119config NIOS2_PASS_CMDLINE
120	bool "Passed kernel command line from u-boot"
121	help
122	  Use bootargs env variable from u-boot for kernel command line.
123	  will override "Default kernel command string".
124	  Say N if you are unsure.
125
126config NIOS2_BOOT_LINK_OFFSET
127	hex "Link address offset for booting"
128	default "0x00500000"
129	help
130	  This option allows you to set the link address offset of the zImage.
131	  This can be useful if you are on a board which has a small amount of
132	  memory.
133
134endmenu
135
136menu "Advanced setup"
137
138config ADVANCED_OPTIONS
139	bool "Prompt for advanced kernel configuration options"
140
141comment "Default settings for advanced configuration options are used"
142	depends on !ADVANCED_OPTIONS
143
144config NIOS2_KERNEL_MMU_REGION_BASE_BOOL
145	bool "Set custom kernel MMU region base address"
146	depends on ADVANCED_OPTIONS
147	help
148	  This option allows you to set the virtual address of the kernel MMU region.
149
150	  Say N here unless you know what you are doing.
151
152config NIOS2_KERNEL_MMU_REGION_BASE
153	hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL
154	default "0x80000000"
155	help
156	  This option allows you to set the virtual base address of the kernel MMU region.
157
158config NIOS2_KERNEL_REGION_BASE_BOOL
159	bool "Set custom kernel region base address"
160	depends on ADVANCED_OPTIONS
161	help
162	  This option allows you to set the virtual address of the kernel region.
163
164	  Say N here unless you know what you are doing.
165
166config NIOS2_KERNEL_REGION_BASE
167	hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL
168	default "0xc0000000"
169
170config NIOS2_IO_REGION_BASE_BOOL
171	bool "Set custom I/O region base address"
172	depends on ADVANCED_OPTIONS
173	help
174	  This option allows you to set the virtual address of the I/O region.
175
176	  Say N here unless you know what you are doing.
177
178config NIOS2_IO_REGION_BASE
179	hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
180	default "0xe0000000"
181
182endmenu