From dde99f7faf7895ff0885af842f958b4d159d93ef Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Sat, 6 Jun 2015 15:08:16 +0530 Subject: [PATCH] zynqmp: mini: Define config for ZynqMP mini support Define Config for ZynqMP mini to support flash utility. The u-boot built with this would be used to support zynqMP flash support to QSPI flash from SDK. This mini refers to the size of u-boot which will fit in OCM. Need to build as "make zynqmp_mini_qspi_config" Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/cpu/armv8/zynqmp/Kconfig | 4 + board/xilinx/zynqmp/MAINTAINERS | 2 + configs/xilinx_zynqmp_mini_qspi_defconfig | 9 +++ include/configs/xilinx_zynqmp_mini.h | 92 +++++++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 configs/xilinx_zynqmp_mini_qspi_defconfig create mode 100644 include/configs/xilinx_zynqmp_mini.h diff --git a/arch/arm/cpu/armv8/zynqmp/Kconfig b/arch/arm/cpu/armv8/zynqmp/Kconfig index 9548ab29110..1ec5ebc5093 100644 --- a/arch/arm/cpu/armv8/zynqmp/Kconfig +++ b/arch/arm/cpu/armv8/zynqmp/Kconfig @@ -6,6 +6,9 @@ choice config TARGET_ZYNQMP_EP bool "ZynqMP EP Board" +config TARGET_ZYNQMP_MINI + bool "ZynqMP MINI" + endchoice config SYS_BOARD @@ -19,6 +22,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "xilinx_zynqmp_ep" if TARGET_ZYNQMP_EP + default "xilinx_zynqmp_mini" if TARGET_ZYNQMP_MINI config SECURE_IOU bool "Configure ZynqMP secure IOU" diff --git a/board/xilinx/zynqmp/MAINTAINERS b/board/xilinx/zynqmp/MAINTAINERS index 20ca6522e57..e2bdbd2278b 100644 --- a/board/xilinx/zynqmp/MAINTAINERS +++ b/board/xilinx/zynqmp/MAINTAINERS @@ -4,4 +4,6 @@ S: Maintained F: board/xilinx/zynqmp/ F: include/configs/xilinx_zynqmp.h F: include/configs/xilinx_zynqmp_ep.h +F: include/configs/xilinx_zynqmp_mini.h F: configs/xilinx_zynqmp_ep_defconfig +F: configs/xilinx_zynqmp_mini_qspi_defconfig diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig b/configs/xilinx_zynqmp_mini_qspi_defconfig new file mode 100644 index 00000000000..f62f5c2f364 --- /dev/null +++ b/configs/xilinx_zynqmp_mini_qspi_defconfig @@ -0,0 +1,9 @@ +CONFIG_ARM=y +CONFIG_ARCH_ZYNQMP=y +CONFIG_TARGET_ZYNQMP_MINI=y +CONFIG_SECURE_IOU=y +CONFIG_ZYNQMP_QSPI=y +CONFIG_DEFAULT_DEVICE_TREE="zynqmp-flash" +CONFIG_SYS_EXTRA_OPTIONS="MINI_QSPI" +CONFIG_SYS_TEXT_BASE=0xFFFC0000 +CONFIG_CMD_RUN=y diff --git a/include/configs/xilinx_zynqmp_mini.h b/include/configs/xilinx_zynqmp_mini.h new file mode 100644 index 00000000000..3c247bb8216 --- /dev/null +++ b/include/configs/xilinx_zynqmp_mini.h @@ -0,0 +1,92 @@ +/* + * Configuration for Xilinx ZynqMP Flash + * utility. See zynqmp-common.h for ZynqMP + * common configs + * + * (C) Copyright 2014 - 2015 Xilinx, Inc. + * Michal Simek + * Siva Durga Prasad Paladugu + * + * Based on Configuration for Versatile Express + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQMP_MINI_H +#define __CONFIG_ZYNQMP_MINI_H + +#define CONFIG_SYS_NO_FLASH +#define CONFIG_ZYNQ_DCC +#define _CONFIG_CMD_DEFAULT_H +#define CONFIG_SYS_DCACHE_OFF +#define CONFIG_SYS_ICACHE_OFF + +#include + +/* Undef unneeded configs */ +#undef CONFIG_SYS_SDRAM_BASE +#undef CONFIG_SYS_SDRAM_SIZE +#undef CONFIG_OF_LIBFDT +#undef CONFIG_EXTRA_ENV_SETTINGS +#undef CONFIG_BOARD_LATE_INIT +#undef CONFIG_FIT +#undef CONFIG_FIT_VERBOSE +#undef CONFIG_CMD_BOOTZ +#undef CONFIG_BOOTCOMMAND +#undef CONFIG_SYS_HUSH_PARSER +#undef CONFIG_SYS_PROMPT_HUSH_PS2 +#undef CONFIG_BOOTDELAY +#undef CONFIG_PREBOOT +#undef CONFIG_SYS_MALLOC_LEN +#undef CONFIG_ENV_SIZE +#undef CONFIG_CMDLINE_EDITING +#undef CONFIG_AUTO_COMPLETE +#undef CONFIG_ZLIB +#undef CONFIG_GZIP +#undef CONFIG_CMD_SPL +#undef CONFIG_CMD_ENV +#undef CONFIG_CMD_EXT2 +#undef CONFIG_CMD_EXT4 +#undef CONFIG_CMD_FAT +#undef CONFIG_CMD_FS_GENERIC +#undef CONFIG_CMD_MEMORY +#undef CONFIG_DOS_PARTITION +#undef CONFIG_CMD_ELF +#undef CONFIG_MP +#undef CONFIG_SYS_MEMTEST_START +#undef CONFIG_SYS_MEMTEST_END +#undef CONFIG_SYS_CACHELINE_SIZE +#undef CONFIG_SYS_INIT_SP_ADDR + +#undef CONFIG_CMD_MII + +/* BOOTP options */ +#undef CONFIG_BOOTP_BOOTFILESIZE +#undef CONFIG_BOOTP_BOOTPATH +#undef CONFIG_BOOTP_GATEWAY +#undef CONFIG_BOOTP_HOSTNAME +#undef CONFIG_BOOTP_MAY_FAIL +#undef CONFIG_BOOTP_SERVERIP +#undef CONFIG_CMD_BOOTI +#undef CONFIG_CMD_UNZIP + +/* Define needed configs */ +#define CONFIG_CMD_MEMORY +#define CONFIG_BOOTDELAY -1 /* -1 to Disable autoboot */ +#define CONFIG_SYS_MALLOC_LEN 0x2000 + +#if defined(CONFIG_MINI_QSPI) +# define CONFIG_SYS_SDRAM_SIZE (256 * 1024) +# define CONFIG_SYS_SDRAM_BASE 0xFFFC0000 +# define CONFIG_ENV_SIZE 1400 +# define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x20000) + +#elif defined(CONFIG_MINI_NAND) +# define CONFIG_SYS_SDRAM_SIZE (4 * 1024 * 1024) +# define CONFIG_SYS_SDRAM_BASE 0 +# define CONFIG_ENV_SIZE 0x10000 +# define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x40000) + +#endif + +#endif /* __CONFIG_ZYNQMP_MINI_H */ -- 2.47.3