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 6d3b9f659SChristoph Hellwig select ARCH_HAS_DMA_PREP_COHERENT 7957e3facSRiku Voipio select ARCH_HAS_GCOV_PROFILE_ALL 85411ad27SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_CPU 95411ad27SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_DEVICE 10355f65a3SMark Salter select ARCH_MIGHT_HAVE_PC_PARPORT 11c1d7e01dSWill Deacon select ARCH_WANT_IPC_PARSE_VERSION 1210916706SShile Zhang select BUILDTIME_TABLE_SORT 13bb0eb050SDaniel Lezcano select TIMER_OF 1425213388SMichal Simek select CLONE_BACKWARDS3 1525213388SMichal Simek select COMMON_CLK 1605cdf457SMichal Simek select DMA_DIRECT_REMAP 1725213388SMichal Simek select GENERIC_ATOMIC64 1825213388SMichal Simek select GENERIC_CPU_DEVICES 1925213388SMichal Simek select GENERIC_IDLE_POLL_SETUP 20b6e31629SThomas Gleixner select GENERIC_IRQ_PROBE 219d61c18bSThomas Gleixner select GENERIC_IRQ_SHOW 221b34d160SMichael S. Tsirkin select GENERIC_PCI_IOMAP 23839396abSMichal Simek select GENERIC_SCHED_CLOCK 247b13277bSGeorge Spelvin select HAVE_ARCH_HASH 2525213388SMichal Simek select HAVE_ARCH_KGDB 26282a181bSYiFei Zhu select HAVE_ARCH_SECCOMP 2725213388SMichal Simek select HAVE_DEBUG_KMEMLEAK 282602276dSMichal Simek select HAVE_DMA_CONTIGUOUS 2925213388SMichal Simek select HAVE_DYNAMIC_FTRACE 3025213388SMichal Simek select HAVE_FTRACE_MCOUNT_RECORD 3125213388SMichal Simek select HAVE_FUNCTION_GRAPH_TRACER 3225213388SMichal Simek select HAVE_FUNCTION_TRACER 33eb01d42aSChristoph Hellwig select HAVE_PCI 3425213388SMichal Simek select IRQ_DOMAIN 350547dc78SZubair Lutfullah Kakakhel select XILINX_INTC 36786d35d4SDavid Howells select MODULES_USE_ELF_RELA 3725213388SMichal Simek select OF 3825213388SMichal Simek select OF_EARLY_FLATTREE 392eac9c2dSChristoph Hellwig select PCI_DOMAINS_GENERIC if PCI 4020f1b79dSChristoph Hellwig select PCI_SYSCALL if PCI 4125213388SMichal Simek select VIRT_TO_BUS 42fff7fb0bSZhaoxiu Zeng select CPU_NO_EFFICIENT_FFS 4305cdf457SMichal Simek select MMU_GATHER_NO_RANGE 446bf8be7fSMichal Simek select SPARSE_IRQ 455e6e9852SChristoph Hellwig select SET_FS 46*63703f37SKefeng Wang select ZONE_DMA 47575ca288SMichal Simek 48206d3642SBabu Moger# Endianness selection 49206d3642SBabu Mogerchoice 50206d3642SBabu Moger prompt "Endianness selection" 51428dbf15SBabu Moger default CPU_LITTLE_ENDIAN 52206d3642SBabu Moger help 53206d3642SBabu Moger microblaze architectures can be configured for either little or 54206d3642SBabu Moger big endian formats. Be sure to select the appropriate mode. 55206d3642SBabu Moger 56206d3642SBabu Mogerconfig CPU_BIG_ENDIAN 57206d3642SBabu Moger bool "Big endian" 58206d3642SBabu Moger 59206d3642SBabu Mogerconfig CPU_LITTLE_ENDIAN 60206d3642SBabu Moger bool "Little endian" 61206d3642SBabu Moger 62206d3642SBabu Mogerendchoice 63206d3642SBabu Moger 64575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U32 65575ca288SMichal Simek def_bool n 66575ca288SMichal Simek 67575ca288SMichal Simekconfig ARCH_HAS_ILOG2_U64 68575ca288SMichal Simek def_bool n 69575ca288SMichal Simek 70575ca288SMichal Simekconfig GENERIC_HWEIGHT 71575ca288SMichal Simek def_bool y 72575ca288SMichal Simek 73575ca288SMichal Simekconfig GENERIC_CALIBRATE_DELAY 74575ca288SMichal Simek def_bool y 75575ca288SMichal Simek 7614f87389SRemis Lima Baimaconfig GENERIC_CSUM 7714f87389SRemis Lima Baima def_bool y 7814f87389SRemis Lima Baima 7924b45a12SMichal Simekconfig STACKTRACE_SUPPORT 8024b45a12SMichal Simek def_bool y 8124b45a12SMichal Simek 82bf2d8096SMichal Simekconfig LOCKDEP_SUPPORT 83bf2d8096SMichal Simek def_bool y 84bf2d8096SMichal Simek 85c24cf712SMichal Simeksource "arch/microblaze/Kconfig.platform" 86575ca288SMichal Simek 87575ca288SMichal Simekmenu "Processor type and features" 88575ca288SMichal Simek 89575ca288SMichal Simeksource "kernel/Kconfig.hz" 90575ca288SMichal Simek 91575ca288SMichal Simekconfig MMU 9205cdf457SMichal Simek def_bool y 93575ca288SMichal Simek 94575ca288SMichal Simekcomment "Boot options" 95575ca288SMichal Simek 96575ca288SMichal Simekconfig CMDLINE_BOOL 97575ca288SMichal Simek bool "Default bootloader kernel arguments" 98575ca288SMichal Simek 99575ca288SMichal Simekconfig CMDLINE 100575ca288SMichal Simek string "Default kernel command string" 101575ca288SMichal Simek depends on CMDLINE_BOOL 102575ca288SMichal Simek default "console=ttyUL0,115200" 103575ca288SMichal Simek help 104575ca288SMichal Simek On some architectures there is currently no way for the boot loader 105575ca288SMichal Simek to pass arguments to the kernel. For these architectures, you should 106575ca288SMichal Simek supply some command-line options at build time by entering them 107575ca288SMichal Simek here. 108575ca288SMichal Simek 109575ca288SMichal Simekconfig CMDLINE_FORCE 110575ca288SMichal Simek bool "Force default kernel command string" 111575ca288SMichal Simek depends on CMDLINE_BOOL 112575ca288SMichal Simek default n 113575ca288SMichal Simek help 114575ca288SMichal Simek Set this to have arguments from the default kernel command string 115575ca288SMichal Simek override those passed by the boot loader. 116575ca288SMichal Simek 117575ca288SMichal Simekendmenu 118575ca288SMichal Simek 119b408e2c2SMichal Simekmenu "Kernel features" 120a116f6d5SMichal Simek 1214cbbbb43SMichal Simekconfig NR_CPUS 1224cbbbb43SMichal Simek int 1234cbbbb43SMichal Simek default "1" 1244cbbbb43SMichal Simek 125a116f6d5SMichal Simekconfig ADVANCED_OPTIONS 126a116f6d5SMichal Simek bool "Prompt for advanced kernel configuration options" 127a116f6d5SMichal Simek help 128a116f6d5SMichal Simek This option will enable prompting for a variety of advanced kernel 129a116f6d5SMichal Simek configuration options. These options can cause the kernel to not 130a116f6d5SMichal Simek work if they are set incorrectly, but can be used to optimize certain 131a116f6d5SMichal Simek aspects of kernel memory management. 132a116f6d5SMichal Simek 133a116f6d5SMichal Simek Unless you know what you are doing, say N here. 134a116f6d5SMichal Simek 135a116f6d5SMichal Simekcomment "Default settings for advanced configuration options are used" 136a116f6d5SMichal Simek depends on !ADVANCED_OPTIONS 137a116f6d5SMichal Simek 1382f2f371fSMichal Simekconfig HIGHMEM 1392f2f371fSMichal Simek bool "High memory support" 1407ac1b26bSThomas Gleixner select KMAP_LOCAL 1412f2f371fSMichal Simek help 1422f2f371fSMichal Simek The address space of Microblaze processors is only 4 Gigabytes large 1432f2f371fSMichal Simek and it has to accommodate user address space, kernel address 1442f2f371fSMichal Simek space as well as some memory mapped IO. That means that, if you 1452f2f371fSMichal Simek have a large amount of physical memory and/or IO, not all of the 1462f2f371fSMichal Simek memory can be "permanently mapped" by the kernel. The physical 1472f2f371fSMichal Simek memory that is not permanently mapped is called "high memory". 1482f2f371fSMichal Simek 1492f2f371fSMichal Simek If unsure, say n. 150a116f6d5SMichal Simek 151a116f6d5SMichal Simekconfig LOWMEM_SIZE_BOOL 152a116f6d5SMichal Simek bool "Set maximum low memory" 15305cdf457SMichal Simek depends on ADVANCED_OPTIONS 154a116f6d5SMichal Simek help 155a116f6d5SMichal Simek This option allows you to set the maximum amount of memory which 156a116f6d5SMichal Simek will be used as "low memory", that is, memory which the kernel can 157a116f6d5SMichal Simek access directly, without having to set up a kernel virtual mapping. 158a116f6d5SMichal Simek This can be useful in optimizing the layout of kernel virtual 159a116f6d5SMichal Simek memory. 160a116f6d5SMichal Simek 161a116f6d5SMichal Simek Say N here unless you know what you are doing. 162a116f6d5SMichal Simek 163a116f6d5SMichal Simekconfig LOWMEM_SIZE 164a116f6d5SMichal Simek hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL 165a116f6d5SMichal Simek default "0x30000000" 166a116f6d5SMichal Simek 1670b9b0200SMichal Simekconfig MANUAL_RESET_VECTOR 1680b9b0200SMichal Simek hex "Microblaze reset vector address setup" 1690b9b0200SMichal Simek default "0x0" 1700b9b0200SMichal Simek help 1710b9b0200SMichal Simek Set this option to have the kernel override the CPU Reset vector. 1720b9b0200SMichal Simek If zero, no change will be made to the MicroBlaze reset vector at 1730b9b0200SMichal Simek address 0x0. 1740b9b0200SMichal Simek If non-zero, a jump instruction to this address, will be written 1750b9b0200SMichal Simek to the reset vector at address 0x0. 1760b9b0200SMichal Simek If you are unsure, set it to default value 0x0. 1770b9b0200SMichal Simek 178a116f6d5SMichal Simekconfig KERNEL_START_BOOL 179a116f6d5SMichal Simek bool "Set custom kernel base address" 180a116f6d5SMichal Simek depends on ADVANCED_OPTIONS 181a116f6d5SMichal Simek help 182a116f6d5SMichal Simek This option allows you to set the kernel virtual address at which 183a116f6d5SMichal Simek the kernel will map low memory (the kernel image will be linked at 184a116f6d5SMichal Simek this address). This can be useful in optimizing the virtual memory 185a116f6d5SMichal Simek layout of the system. 186a116f6d5SMichal Simek 187a116f6d5SMichal Simek Say N here unless you know what you are doing. 188a116f6d5SMichal Simek 189a116f6d5SMichal Simekconfig KERNEL_START 190a116f6d5SMichal Simek hex "Virtual address of kernel base" if KERNEL_START_BOOL 19105cdf457SMichal Simek default "0xc0000000" 192a116f6d5SMichal Simek 193a116f6d5SMichal Simekconfig TASK_SIZE_BOOL 194a116f6d5SMichal Simek bool "Set custom user task size" 19505cdf457SMichal Simek depends on ADVANCED_OPTIONS 196a116f6d5SMichal Simek help 197a116f6d5SMichal Simek This option allows you to set the amount of virtual address space 198a116f6d5SMichal Simek allocated to user tasks. This can be useful in optimizing the 199a116f6d5SMichal Simek virtual memory layout of the system. 200a116f6d5SMichal Simek 201a116f6d5SMichal Simek Say N here unless you know what you are doing. 202a116f6d5SMichal Simek 203a116f6d5SMichal Simekconfig TASK_SIZE 204a116f6d5SMichal Simek hex "Size of user task space" if TASK_SIZE_BOOL 205a116f6d5SMichal Simek default "0x80000000" 206a116f6d5SMichal Simek 207575ca288SMichal Simekendmenu 208575ca288SMichal Simek 209a6475c13SMichal Simekmenu "Bus Options" 210a6475c13SMichal Simek 211733cc218SMichal Simekconfig PCI_XILINX 212733cc218SMichal Simek bool "Xilinx PCI host bridge support" 213733cc218SMichal Simek depends on PCI 214733cc218SMichal Simek 215a6475c13SMichal Simekendmenu 216