]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: mini: Define config for ZynqMP mini support
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Sat, 6 Jun 2015 09:38:16 +0000 (15:08 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Jul 2015 11:13:35 +0000 (13:13 +0200)
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 <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/zynqmp/Kconfig
board/xilinx/zynqmp/MAINTAINERS
configs/xilinx_zynqmp_mini_qspi_defconfig [new file with mode: 0644]
include/configs/xilinx_zynqmp_mini.h [new file with mode: 0644]

index 9548ab29110fe00e0cf423a32070c3ae2ecf5b6b..1ec5ebc50939f309ce89933c7dad88dbc0eeabbf 100644 (file)
@@ -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"
index 20ca6522e5700fb47b67a8a80843ca4dcb18734a..e2bdbd2278bf4e42f9232c5f4f21e06c37564187 100644 (file)
@@ -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 (file)
index 0000000..f62f5c2
--- /dev/null
@@ -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 (file)
index 0000000..3c247bb
--- /dev/null
@@ -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 <michal.simek@xilinx.com>
+ * Siva Durga Prasad Paladugu <sivadur@xilinx.com>
+ *
+ * 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 <configs/xilinx_zynqmp.h>
+
+/* 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 */