From cfe5124bd61c541fcb070e896efcbe0caec7e822 Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Thu, 3 Dec 2015 17:57:24 +0530 Subject: [PATCH] config: zynq_cse: Remove unnecessary configs for zynq cse qspi Removed unnecessary configs for zynq cse. This will decrease the size of the image so that it can fit to OCM easily.Also, decrease malloc and console buffer size to reduce the size. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- configs/zynq_cse_qspi_defconfig | 24 ++++++++++++++++++++++++ include/configs/zynq_cse.h | 19 +++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/configs/zynq_cse_qspi_defconfig b/configs/zynq_cse_qspi_defconfig index 70c65c0fd7d..fb8cdd6073e 100644 --- a/configs/zynq_cse_qspi_defconfig +++ b/configs/zynq_cse_qspi_defconfig @@ -6,6 +6,30 @@ CONFIG_SYS_EXTRA_OPTIONS="CSE_QSPI" # CONFIG_CMD_BOOTD is not set # CONFIG_CMD_BOOTM is not set # CONFIG_CMD_GO is not set +# CONFIG_CMD_BDI is not set +# CONFIG_CMD_CONSOLE is not set +# CONFIG_CMD_RUN is not set +# CONFIG_CMD_IMI is not set +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_XIMG is not set +# CONFIG_CMD_EXPORTENV is not set +# CONFIG_CMD_IMPORTENV is not set +# CONFIG_CMD_EDITENV is not set +# CONFIG_CMD_SAVEENV is not set +# CONFIG_CMD_ENV_EXISTS is not set +# CONFIG_CMD_CRC32 is not set +# CONFIG_CMD_DM is not set +# CONFIG_CMD_LOADB is not set +# CONFIG_CMD_LOADS is not set +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_FPGA is not set +# CONFIG_CMD_ECHO is not set +# CONFIG_CMD_ITEST is not set +# CONFIG_CMD_SOURCE is not set +# CONFIG_CMD_SETEXPR is not set +# CONFIG_CMD_NET is not set +# CONFIG_CMD_NFS is not set +# CONFIG_CMD_MISC is not set CONFIG_OF_EMBED=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y diff --git a/include/configs/zynq_cse.h b/include/configs/zynq_cse.h index 0b20e2c47b8..c6aca1d0d89 100644 --- a/include/configs/zynq_cse.h +++ b/include/configs/zynq_cse.h @@ -16,6 +16,8 @@ #define CONFIG_SKIP_LOWLEVEL_INIT #define CONFIG_ENV_IS_NOWHERE #define CONFIG_SYS_DCACHE_OFF +#define CONFIG_SYS_ICACHE_OFF +#define CONFIG_FIT_DISABLE_SHA256 #if defined(CONFIG_CSE_QSPI) # define CONFIG_ZYNQ_QSPI @@ -52,15 +54,28 @@ #undef CONFIG_ZLIB #undef CONFIG_GZIP #undef CONFIG_CMD_SPL +#undef CONFIG_SYS_LONGHELP +#undef CONFIG_PARTITIONS +#undef CONFIG_CMD_FPGA_LOADMK +#undef CONFIG_CMD_FPGA_LOADP +#undef CONFIG_CMD_FPGA_LOADBP +#undef CONFIG_CMD_FPGA_LOADFS +#undef CONFIG_CMD_GPIO +#undef CONFIG_ZYNQ_GPIO +#undef CONFIG_CMD_SPI +#undef CONFIG_CMD_CLK +#undef CONFIG_CMD_CACHE +#undef CONFIG_SYS_CBSIZE /* Define needed configs */ #define CONFIG_BOOTDELAY -1 /* -1 to Disable autoboot */ -#define CONFIG_SYS_MALLOC_LEN 0x4000 +#define CONFIG_SYS_MALLOC_LEN 0x1000 +#define CONFIG_SYS_CBSIZE 1024 #if defined(CONFIG_CSE_QSPI) # define CONFIG_SYS_SDRAM_SIZE (256 * 1024) # define CONFIG_SYS_SDRAM_BASE 0xFFFD0000 -# define CONFIG_ENV_SIZE 1400 +# define CONFIG_ENV_SIZE 400 #elif defined(CONFIG_CSE_NAND) # define CONFIG_SYS_SDRAM_SIZE (4 * 1024 * 1024) -- 2.47.3