18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci# For a description of the syntax of this configuration file,
38c2ecf20Sopenharmony_ci# see Documentation/kbuild/kconfig-language.rst.
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci# Platform selection Kconfig menu for MicroBlaze targets
68c2ecf20Sopenharmony_ci#
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cimenu "Platform options"
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciconfig OPT_LIB_FUNCTION
118c2ecf20Sopenharmony_ci	bool "Optimalized lib function"
128c2ecf20Sopenharmony_ci	default y
138c2ecf20Sopenharmony_ci	help
148c2ecf20Sopenharmony_ci	  Allows turn on optimalized library function (memcpy and memmove).
158c2ecf20Sopenharmony_ci	  They are optimized by using word alignment. This will work
168c2ecf20Sopenharmony_ci	  fine if both source and destination are aligned on the same
178c2ecf20Sopenharmony_ci	  boundary. However, if they are aligned on different boundaries
188c2ecf20Sopenharmony_ci	  shifts will be necessary. This might result in bad performance
198c2ecf20Sopenharmony_ci	  on MicroBlaze systems without a barrel shifter.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig OPT_LIB_ASM
228c2ecf20Sopenharmony_ci	bool "Optimalized lib function ASM"
238c2ecf20Sopenharmony_ci	depends on OPT_LIB_FUNCTION && (XILINX_MICROBLAZE0_USE_BARREL = 1)
248c2ecf20Sopenharmony_ci	depends on CPU_BIG_ENDIAN
258c2ecf20Sopenharmony_ci	default n
268c2ecf20Sopenharmony_ci	help
278c2ecf20Sopenharmony_ci	  Allows turn on optimalized library function (memcpy and memmove).
288c2ecf20Sopenharmony_ci	  Function are written in asm code.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci# Definitions for MICROBLAZE0
318c2ecf20Sopenharmony_cicomment "Definitions for MICROBLAZE0"
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciconfig KERNEL_BASE_ADDR
348c2ecf20Sopenharmony_ci	hex "Physical address where Linux Kernel is"
358c2ecf20Sopenharmony_ci	default "0x90000000"
368c2ecf20Sopenharmony_ci	help
378c2ecf20Sopenharmony_ci	  BASE Address for kernel
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_FAMILY
408c2ecf20Sopenharmony_ci	string "Targeted FPGA family"
418c2ecf20Sopenharmony_ci	default "virtex5"
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_MSR_INSTR
448c2ecf20Sopenharmony_ci	int "USE_MSR_INSTR range (0:1)"
458c2ecf20Sopenharmony_ci	default 0
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_PCMP_INSTR
488c2ecf20Sopenharmony_ci	int "USE_PCMP_INSTR range (0:1)"
498c2ecf20Sopenharmony_ci	default 0
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_BARREL
528c2ecf20Sopenharmony_ci	int "USE_BARREL range (0:1)"
538c2ecf20Sopenharmony_ci	default 0
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_DIV
568c2ecf20Sopenharmony_ci	int "USE_DIV range (0:1)"
578c2ecf20Sopenharmony_ci	default 0
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_HW_MUL
608c2ecf20Sopenharmony_ci	int "USE_HW_MUL values (0=NONE, 1=MUL32, 2=MUL64)"
618c2ecf20Sopenharmony_ci	default 0
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_USE_FPU
648c2ecf20Sopenharmony_ci	int "USE_FPU values (0=NONE, 1=BASIC, 2=EXTENDED)"
658c2ecf20Sopenharmony_ci	default 0
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciconfig XILINX_MICROBLAZE0_HW_VER
688c2ecf20Sopenharmony_ci	string "Core version number"
698c2ecf20Sopenharmony_ci	default "7.10.d"
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciendmenu
72