From c4155024c8ec6edfa5f5cec41b9fa51b369ebdca Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Fri, 14 Mar 2014 16:35:41 +0530 Subject: [PATCH] zynq: Add new Zynq OCM platform 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 Signed-off-by: Michal Simek --- boards.cfg | 1 + include/configs/zynq-common.h | 2 ++ include/configs/zynq_ocm.h | 66 +++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 include/configs/zynq_ocm.h diff --git a/boards.cfg b/boards.cfg index bab89f27551..711f58b4f3d 100644 --- a/boards.cfg +++ b/boards.cfg @@ -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 Active arm armv7 zynq xilinx zynq zynq_cse_qspi zynq_cse:CSE_QSPI Michal Simek Active arm armv7 zynq xilinx zynq zynq_cse_nand zynq_cse:CSE_NAND Michal Simek +Active arm armv7 zynq xilinx zynq zynq_ocm - Michal Simek Active arm armv7 zynq xilinx zynq zynq_cc108 - Michal Simek Active arm armv7 zynq xilinx zynq zynq_zc770_XM010_RSA zynq_zc770:ZC770_XM010,CMD_ZYNQ_RSA Michal Simek Active arm armv7 zynq xilinx zynq zynq_zc770_XM011_RSA zynq_zc770:ZC770_XM011,CMD_ZYNQ_RSA Michal Simek diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 6f0077cce41..662a4784e12 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -303,6 +303,8 @@ # 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 index 00000000000..33093655cfa --- /dev/null +++ b/include/configs/zynq_ocm.h @@ -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 + +/* 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 */ -- 2.47.3