]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Add new Zynq OCM platform
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 14 Mar 2014 11:05:41 +0000 (16:35 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 17 Mar 2014 13:34:16 +0000 (14:34 +0100)
Added SD/MMC read support for u-boot running from OCM.
Added option to build the same with config zynq_ocm.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
boards.cfg
include/configs/zynq-common.h
include/configs/zynq_ocm.h [new file with mode: 0644]

index bab89f2755155abbde0e0b38402fac20744c49d3..711f58b4f3d443260ba5f8b294f89df15e9f8c96 100644 (file)
@@ -369,6 +369,7 @@ Active  arm         armv7          zynq        xilinx          zynq
 Active  arm         armv7          zynq        xilinx          zynq                zynq_cse_nor                         zynq_cse:CSE_NOR                                                                                                                  Michal Simek <michal.simek@xilinx.com>
 Active  arm         armv7          zynq        xilinx          zynq                zynq_cse_qspi                        zynq_cse:CSE_QSPI                                                                                                                 Michal Simek <michal.simek@xilinx.com>
 Active  arm         armv7          zynq        xilinx          zynq                zynq_cse_nand                        zynq_cse:CSE_NAND                                                                                                                 Michal Simek <michal.simek@xilinx.com>
+Active  arm         armv7          zynq        xilinx          zynq                zynq_ocm                             -                                                                                                                                 Michal Simek <michal.simek@xilinx.com>
 Active  arm         armv7          zynq        xilinx          zynq                zynq_cc108                           -                                                                                                                                 Michal Simek <michal.simek@xilinx.com>
 Active  arm         armv7          zynq        xilinx          zynq                zynq_zc770_XM010_RSA                 zynq_zc770:ZC770_XM010,CMD_ZYNQ_RSA                                                                                                   Michal Simek <michal.simek@xilinx.com>
 Active  arm         armv7          zynq        xilinx          zynq                zynq_zc770_XM011_RSA                 zynq_zc770:ZC770_XM011,CMD_ZYNQ_RSA                                                                                                   Michal Simek <michal.simek@xilinx.com>
index 6f0077cce417e890935aaee51ffe9d339afdac8f..662a4784e128adeebdece3c6a2e24a14f373253f 100644 (file)
 # define CONFIG_SYS_TEXT_BASE          0xFFFC4800
 #elif defined(CONFIG_CSE_NAND)
 # define CONFIG_SYS_TEXT_BASE          0x00100000
+#elif defined(CONFIG_ZYNQ_OCM)
+# define CONFIG_SYS_TEXT_BASE          0xFFFC0000
 #else
 # define CONFIG_SYS_TEXT_BASE          0x4000000
 #endif
diff --git a/include/configs/zynq_ocm.h b/include/configs/zynq_ocm.h
new file mode 100644 (file)
index 0000000..3309365
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * (C) Copyright 2014 Xilinx, Inc.
+ *
+ * Configuration settings for the Xilinx Zynq OCM.
+ * See zynq-common.h for Zynq common configs
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __CONFIG_ZYNQ_OCM_H
+#define __CONFIG_ZYNQ_OCM_H
+
+#define CONFIG_SYS_NO_FLASH
+#define CONFIG_ZYNQ_SERIAL_UART1
+#define _CONFIG_CMD_DEFAULT_H
+#define CONFIG_SKIP_LOWLEVEL_INIT
+#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_SYS_DCACHE_OFF
+#define CONFIG_SYS_ICACHE_OFF
+#define CONFIG_ZYNQ_OCM
+#define CONFIG_ZYNQ_SDHCI0
+#define CONFIG_ZYNQ_QSPI
+
+#include <configs/zynq-common.h>
+
+/* Undef unneeded configs */
+#undef CONFIG_SYS_SDRAM_BASE
+#undef CONFIG_OF_LIBFDT
+#undef CONFIG_EXTRA_ENV_SETTINGS
+#undef CONFIG_BOARD_LATE_INIT
+#undef CONFIG_FIT
+#undef CONFIG_FIT_VERBOSE
+#undef CONFIG_CMD_GO
+#undef CONFIG_CMD_BOOTM
+#undef CONFIG_CMD_BOOTZ
+#undef CONFIG_BOOTCOMMAND
+#undef CONFIG_SYS_HUSH_PARSER
+#undef CONFIG_SYS_PROMPT_HUSH_PS2
+#undef CONFIG_BOOTDELAY
+#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_SUPPORT_VFAT
+#undef CONFIG_CMD_EXT2
+#undef CONFIG_FAT_WRITE
+#undef CONFIG_CMD_EXT4
+#undef CONFIG_CMD_EXT4_WRITE
+
+/* Define needed configs */
+#define CONFIG_CMD_MEMORY
+#define CONFIG_BOOTDELAY       -1 /* -1 to Disable autoboot */
+#define CONFIG_SYS_MALLOC_LEN  0x4000
+
+#define CONFIG_SYS_SDRAM_SIZE          ((256 * 1024) - 32)
+#define CONFIG_SYS_SDRAM_BASE          0xFFFC0000
+#define CONFIG_ENV_SIZE                        1400
+
+#define FAT_BUFF_PTR_OCM               0xFFFC5000
+/* Define the cluster size fat filesystem */
+#define MAX_CLUSTSIZE                  32768
+
+#endif /* __CONFIG_ZYNQ_OCM_H */