1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2575ca288SMichal Simekconfig MICROBLAZE 3575ca288SMichal Simek def_bool y 4942fa985SYury Norov select ARCH_32BIT_OFF_T 517c46a6aSChristoph Hellwig select ARCH_NO_SWAP 6aef0f78eSChristoph Hellwig select ARCH_HAS_BINFMT_FLAT if !MMU 758b04406SChristoph Hellwig select ARCH_HAS_DMA_COHERENT_TO_PFN if MMU 8*d3b9f659SChristoph Hellwig select ARCH_HAS_DMA_PREP_COHERENT 9957e3facSRiku Voipio select ARCH_HAS_GCOV_PROFILE_ALL 105411ad27SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_CPU 115411ad27SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_DEVICE 12*d3b9f659SChristoph Hellwig select ARCH_HAS_UNCACHED_SEGMENT if !MMU 13355f65a3SMark Salter select ARCH_MIGHT_HAVE_PC_PARPORT 1407c75d7aSVladimir Murzin select ARCH_NO_COHERENT_DMA_MMAP if !MMU 15c1d7e01dSWill Deacon select ARCH_WANT_IPC_PARSE_VERSION 1625213388SMichal Simek select BUILDTIME_EXTABLE_SORT 17bb0eb050SDaniel Lezcano select TIMER_OF 1825213388SMichal Simek select CLONE_BACKWARDS3 1925213388SMichal Simek select COMMON_CLK 2025213388SMichal Simek select GENERIC_ATOMIC64 2125213388SMichal Simek select GENERIC_CLOCKEVENTS 2225213388SMichal Simek select GENERIC_CPU_DEVICES 2325213388SMichal Simek select GENERIC_IDLE_POLL_SETUP 24b6e31629SThomas Gleixner select GENERIC_IRQ_PROBE 259d61c18bSThomas Gleixner select GENERIC_IRQ_SHOW 261b34d160SMichael S. Tsirkin select GENERIC_PCI_IOMAP 27839396abSMichal Simek select GENERIC_SCHED_CLOCK 287b13277bSGeorge Spelvin select HAVE_ARCH_HASH 2925213388SMichal Simek select HAVE_ARCH_KGDB 3025213388SMichal Simek select HAVE_DEBUG_KMEMLEAK 3125213388SMichal Simek select HAVE_DYNAMIC_FTRACE 3225213388SMichal Simek select HAVE_FTRACE_MCOUNT_RECORD 3325213388SMichal Simek select HAVE_FUNCTION_GRAPH_TRACER 3425213388SMichal Simek select HAVE_FUNCTION_TRACER 3525213388SMichal Simek select HAVE_MEMBLOCK_NODE_MAP 3625213388SMichal Simek select HAVE_OPROFILE 37eb01d42aSChristoph Hellwig select HAVE_PCI 3825213388SMichal Simek select IRQ_DOMAIN 390547dc78SZubair Lutfullah Kakakhel select XILINX_INTC 40786d35d4SDavid Howells select MODULES_USE_ELF_RELA 4125213388SMichal Simek select OF 4225213388SMichal Simek select OF_EARLY_FLATTREE 432eac9c2dSChristoph Hellwig select PCI_DOMAINS_GENERIC if PCI 4420f1b79dSChristoph Hellwig select PCI_SYSCALL if PCI 4525213388SMichal Simek select TRACING_SUPPORT 4625213388SMichal Simek select VIRT_TO_BUS 47fff7fb0bSZhaoxiu Zeng select CPU_NO_EFFICIENT_FFS 486137fed0SPeter Zijlstra select MMU_GATHER_NO_RANGE if MMU 49575ca288SMichal Simek 50206d3642SBabu Moger# Endianness selection 51206d3642SBabu Mogerchoice 52206d3642SBabu Moger prompt "Endianness selection" 53428dbf15SBabu Moger default CPU_LITTLE_ENDIAN 54206d3642SBabu Moger help 55206d3642SBabu Moger microblaze architectures can be configured for either little or 56206d3642SBabu Moger big endian formats. Be sure to select the appropriate mode. 57206d3642SBabu Moger 58206d3642SBabu Mogerconfig CPU_BIG_ENDIAN 59206d3642SBabu Moger bool "Big endian" 60206d3642SBabu Moger 61206d3642SBabu Mogerconfig CPU_LITTLE_ENDIAN 62206d3642SBabu Moger bool "Little endian" 63206d3642SBabu Moger 64206d3642SBabu Mogerendchoice 65206d3642SBabu Moger 664e2e4124SMichal Simekconfig ZONE_DMA 674e2e4124SMichal Simek def_bool y 684e2e4124SMichal Simek 69575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32 70575ca288SMichal Simek def_bool n 71575ca288SMichal Simek 72575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64 73575ca288SMichal Simek def_bool n 74575ca288SMichal Simek 75575ca288SMichal Simekconfig GENERIC_HWEIGHT 76575ca288SMichal Simek def_bool y 77575ca288SMichal Simek 78575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY 79575ca288SMichal Simek def_bool y 80575ca288SMichal Simek 8114f87389SRemis Lima Baimaconfig GENERIC_CSUM 8214f87389SRemis Lima Baima def_bool y 8314f87389SRemis Lima Baima 8424b45a12SMichal Simekconfig STACKTRACE_SUPPORT 8524b45a12SMichal Simek def_bool y 8624b45a12SMichal Simek 87bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT 88bf2d8096SMichal Simek def_bool y 89bf2d8096SMichal Simek 90c24cf712SMichal Simeksource "arch/microblaze/Kconfig.platform" 91575ca288SMichal Simek 92575ca288SMichal Simekmenu "Processor type and features" 93575ca288SMichal Simek 94575ca288SMichal Simeksource "kernel/Kconfig.hz" 95575ca288SMichal Simek 96575ca288SMichal Simekconfig MMU 97a116f6d5SMichal Simek bool "MMU support" 98a116f6d5SMichal Simek default n 99575ca288SMichal Simek 100575ca288SMichal Simekcomment "Boot options" 101575ca288SMichal Simek 102575ca288SMichal Simekconfig CMDLINE_BOOL 103575ca288SMichal Simek bool "Default bootloader kernel arguments" 104575ca288SMichal Simek 105575ca288SMichal Simekconfig CMDLINE 106575ca288SMichal Simek string "Default kernel command string" 107575ca288SMichal Simek depends on CMDLINE_BOOL 108575ca288SMichal Simek default "console=ttyUL0,115200" 109575ca288SMichal Simek help 110575ca288SMichal Simek On some architectures there is currently no way for the boot loader 111575ca288SMichal Simek to pass arguments to the kernel. For these architectures, you should 112575ca288SMichal Simek supply some command-line options at build time by entering them 113575ca288SMichal Simek here. 114575ca288SMichal Simek 115575ca288SMichal Simekconfig CMDLINE_FORCE 116575ca288SMichal Simek bool "Force default kernel command string" 117575ca288SMichal Simek depends on CMDLINE_BOOL 118575ca288SMichal Simek default n 119575ca288SMichal Simek help 120575ca288SMichal Simek Set this to have arguments from the default kernel command string 121575ca288SMichal Simek override those passed by the boot loader. 122575ca288SMichal Simek 12368c6ac33SMichal Simekconfig SECCOMP 12468c6ac33SMichal Simek bool "Enable seccomp to safely compute untrusted bytecode" 12568c6ac33SMichal Simek depends on PROC_FS 12668c6ac33SMichal Simek default y 12768c6ac33SMichal Simek help 12868c6ac33SMichal Simek This kernel feature is useful for number crunching applications 12968c6ac33SMichal Simek that may need to compute untrusted bytecode during their 13068c6ac33SMichal Simek execution. By using pipes or other transports made available to 13168c6ac33SMichal Simek the process as file descriptors supporting the read/write 13268c6ac33SMichal Simek syscalls, it's possible to isolate those applications in 13368c6ac33SMichal Simek their own address space using seccomp. Once seccomp is 13468c6ac33SMichal Simek enabled via /proc/<pid>/seccomp, it cannot be disabled 13568c6ac33SMichal Simek and the task is only allowed to execute a few safe syscalls 13668c6ac33SMichal Simek defined by each seccomp mode. 13768c6ac33SMichal Simek 13868c6ac33SMichal Simek If unsure, say Y. Only embedded should say N here. 13968c6ac33SMichal Simek 140575ca288SMichal Simekendmenu 141575ca288SMichal Simek 142b408e2c2SMichal Simekmenu "Kernel features" 143a116f6d5SMichal Simek 1444cbbbb43SMichal Simekconfig NR_CPUS 1454cbbbb43SMichal Simek int 1464cbbbb43SMichal Simek default "1" 1474cbbbb43SMichal Simek 148a116f6d5SMichal Simekconfig ADVANCED_OPTIONS 149a116f6d5SMichal Simek bool "Prompt for advanced kernel configuration options" 150a116f6d5SMichal Simek help 151a116f6d5SMichal Simek This option will enable prompting for a variety of advanced kernel 152a116f6d5SMichal Simek configuration options. These options can cause the kernel to not 153a116f6d5SMichal Simek work if they are set incorrectly, but can be used to optimize certain 154a116f6d5SMichal Simek aspects of kernel memory management. 155a116f6d5SMichal Simek 156a116f6d5SMichal Simek Unless you know what you are doing, say N here. 157a116f6d5SMichal Simek 158a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used" 159a116f6d5SMichal Simek depends on !ADVANCED_OPTIONS 160a116f6d5SMichal Simek 1613a0d7a4dSMichal Simekconfig XILINX_UNCACHED_SHADOW 1623a0d7a4dSMichal Simek bool "Are you using uncached shadow for RAM ?" 1633a0d7a4dSMichal Simek depends on ADVANCED_OPTIONS && !MMU 1643a0d7a4dSMichal Simek default n 1653a0d7a4dSMichal Simek help 1663a0d7a4dSMichal Simek This is needed to be able to allocate uncachable memory regions. 1673a0d7a4dSMichal Simek The feature requires the design to define the RAM memory controller 1683a0d7a4dSMichal Simek window to be twice as large as the actual physical memory. 1693a0d7a4dSMichal Simek 1702f2f371fSMichal Simekconfig HIGHMEM 1712f2f371fSMichal Simek bool "High memory support" 172a116f6d5SMichal Simek depends on MMU 1732f2f371fSMichal Simek help 1742f2f371fSMichal Simek The address space of Microblaze processors is only 4 Gigabytes large 1752f2f371fSMichal Simek and it has to accommodate user address space, kernel address 1762f2f371fSMichal Simek space as well as some memory mapped IO. That means that, if you 1772f2f371fSMichal Simek have a large amount of physical memory and/or IO, not all of the 1782f2f371fSMichal Simek memory can be "permanently mapped" by the kernel. The physical 1792f2f371fSMichal Simek memory that is not permanently mapped is called "high memory". 1802f2f371fSMichal Simek 1812f2f371fSMichal Simek If unsure, say n. 182a116f6d5SMichal Simek 183a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL 184a116f6d5SMichal Simek bool "Set maximum low memory" 185b8a84059SMichal Simek depends on ADVANCED_OPTIONS && MMU 186a116f6d5SMichal Simek help 187a116f6d5SMichal Simek This option allows you to set the maximum amount of memory which 188a116f6d5SMichal Simek will be used as "low memory", that is, memory which the kernel can 189a116f6d5SMichal Simek access directly, without having to set up a kernel virtual mapping. 190a116f6d5SMichal Simek This can be useful in optimizing the layout of kernel virtual 191a116f6d5SMichal Simek memory. 192a116f6d5SMichal Simek 193a116f6d5SMichal Simek Say N here unless you know what you are doing. 194a116f6d5SMichal Simek 195a116f6d5SMichal Simekconfig LOWMEM_SIZE 196a116f6d5SMichal Simek hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL 197a116f6d5SMichal Simek default "0x30000000" 198a116f6d5SMichal Simek 1990b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR 2000b9b0200SMichal Simek hex "Microblaze reset vector address setup" 2010b9b0200SMichal Simek default "0x0" 2020b9b0200SMichal Simek help 2030b9b0200SMichal Simek Set this option to have the kernel override the CPU Reset vector. 2040b9b0200SMichal Simek If zero, no change will be made to the MicroBlaze reset vector at 2050b9b0200SMichal Simek address 0x0. 2060b9b0200SMichal Simek If non-zero, a jump instruction to this address, will be written 2070b9b0200SMichal Simek to the reset vector at address 0x0. 2080b9b0200SMichal Simek If you are unsure, set it to default value 0x0. 2090b9b0200SMichal Simek 210a116f6d5SMichal Simekconfig KERNEL_START_BOOL 211a116f6d5SMichal Simek bool "Set custom kernel base address" 212a116f6d5SMichal Simek depends on ADVANCED_OPTIONS 213a116f6d5SMichal Simek help 214a116f6d5SMichal Simek This option allows you to set the kernel virtual address at which 215a116f6d5SMichal Simek the kernel will map low memory (the kernel image will be linked at 216a116f6d5SMichal Simek this address). This can be useful in optimizing the virtual memory 217a116f6d5SMichal Simek layout of the system. 218a116f6d5SMichal Simek 219a116f6d5SMichal Simek Say N here unless you know what you are doing. 220a116f6d5SMichal Simek 221a116f6d5SMichal Simekconfig KERNEL_START 222a116f6d5SMichal Simek hex "Virtual address of kernel base" if KERNEL_START_BOOL 223a116f6d5SMichal Simek default "0xc0000000" if MMU 224a116f6d5SMichal Simek default KERNEL_BASE_ADDR if !MMU 225a116f6d5SMichal Simek 226a116f6d5SMichal Simekconfig TASK_SIZE_BOOL 227a116f6d5SMichal Simek bool "Set custom user task size" 228b8a84059SMichal Simek depends on ADVANCED_OPTIONS && MMU 229a116f6d5SMichal Simek help 230a116f6d5SMichal Simek This option allows you to set the amount of virtual address space 231a116f6d5SMichal Simek allocated to user tasks. This can be useful in optimizing the 232a116f6d5SMichal Simek virtual memory layout of the system. 233a116f6d5SMichal Simek 234a116f6d5SMichal Simek Say N here unless you know what you are doing. 235a116f6d5SMichal Simek 236a116f6d5SMichal Simekconfig TASK_SIZE 237a116f6d5SMichal Simek hex "Size of user task space" if TASK_SIZE_BOOL 238a116f6d5SMichal Simek default "0x80000000" 239a116f6d5SMichal Simek 240ba9c4f88SSteven J. Magnanichoice 241ba9c4f88SSteven J. Magnani prompt "Page size" 242ba9c4f88SSteven J. Magnani default MICROBLAZE_4K_PAGES 243ba9c4f88SSteven J. Magnani depends on ADVANCED_OPTIONS && !MMU 244ba9c4f88SSteven J. Magnani help 245ba9c4f88SSteven J. Magnani Select the kernel logical page size. Increasing the page size 246ba9c4f88SSteven J. Magnani will reduce software overhead at each page boundary, allow 247ba9c4f88SSteven J. Magnani hardware prefetch mechanisms to be more effective, and allow 248ba9c4f88SSteven J. Magnani larger dma transfers increasing IO efficiency and reducing 249ba9c4f88SSteven J. Magnani overhead. However the utilization of memory will increase. 250ba9c4f88SSteven J. Magnani For example, each cached file will using a multiple of the 251ba9c4f88SSteven J. Magnani page size to hold its contents and the difference between the 252ba9c4f88SSteven J. Magnani end of file and the end of page is wasted. 253ba9c4f88SSteven J. Magnani 254ba9c4f88SSteven J. Magnani If unsure, choose 4K_PAGES. 255ba9c4f88SSteven J. Magnani 256ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_4K_PAGES 257ba9c4f88SSteven J. Magnani bool "4k page size" 258ba9c4f88SSteven J. Magnani 259ba9c4f88SSteven J. Magnaniconfig MICROBLAZE_16K_PAGES 260ba9c4f88SSteven J. Magnani bool "16k page size" 261ba9c4f88SSteven J. Magnani 2626e80cff5SMichal Simekconfig MICROBLAZE_64K_PAGES 2636e80cff5SMichal Simek bool "64k page size" 264ba9c4f88SSteven J. Magnani 265ba9c4f88SSteven J. Magnaniendchoice 266ba9c4f88SSteven J. Magnani 267575ca288SMichal Simekendmenu 268575ca288SMichal Simek 269a6475c13SMichal Simekmenu "Bus Options" 270a6475c13SMichal Simek 271733cc218SMichal Simekconfig PCI_XILINX 272733cc218SMichal Simek bool "Xilinx PCI host bridge support" 273733cc218SMichal Simek depends on PCI 274733cc218SMichal Simek 275a6475c13SMichal Simekendmenu 276