From: Tom Rini Date: Tue, 5 Nov 2013 14:35:04 -0500 Subject: [U-Boot] [PATCH 15/34] zynq: Add PHYS_SDRAM_1_SIZE config In-Reply-To: <1ba8e034-c73e-4c88-9e46-11f47deae71f@AM1EHSMHS017.ehs.local> References: <1383673615-32473-1-git-send-email-jaganna@xilinx.com> <1ba8e034-c73e-4c88-9e46-11f47deae71f@AM1EHSMHS017.ehs.local> Message-ID: <20131105193504.GI5925@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 05, 2013 at 11:16:36PM +0530, Jagannadha Sutradharudu Teki wrote: > Added PHYS_SDRAM_1_SIZE config for respective board > DDR size. > > zc70x - 1GB > zed - 512MB > > Signed-off-by: Jagannadha Sutradharudu Teki > --- > include/configs/zynq-common.h | 2 +- > include/configs/zynq_zc70x.h | 2 ++ > include/configs/zynq_zed.h | 2 ++ > 3 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h > index 7e02289..0e732de 100644 > --- a/include/configs/zynq-common.h > +++ b/include/configs/zynq-common.h > @@ -137,7 +137,7 @@ > > #define CONFIG_NR_DRAM_BANKS 1 > #define CONFIG_SYS_SDRAM_BASE 0 > -#define CONFIG_SYS_SDRAM_SIZE 0x40000000 > +#define CONFIG_SYS_SDRAM_SIZE PHYS_SDRAM_1_SIZE > > #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE > #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000) > diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h > index 559cd19..a273005 100644 > --- a/include/configs/zynq_zc70x.h > +++ b/include/configs/zynq_zc70x.h > @@ -10,6 +10,8 @@ > #ifndef __CONFIG_ZYNQ_ZC70X_H > #define __CONFIG_ZYNQ_ZC70X_H > > +#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024) > + > #define CONFIG_ZYNQ_SERIAL_UART1 > #define CONFIG_ZYNQ_GEM0 > #define CONFIG_ZYNQ_GEM_PHY_ADDR0 7 > diff --git a/include/configs/zynq_zed.h b/include/configs/zynq_zed.h > index 1d3dcf7..e5cbab6 100644 > --- a/include/configs/zynq_zed.h > +++ b/include/configs/zynq_zed.h > @@ -10,6 +10,8 @@ > #ifndef __CONFIG_ZYNQ_ZED_H > #define __CONFIG_ZYNQ_ZED_H > > +#define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024) > + > #define CONFIG_ZYNQ_SERIAL_UART1 > #define CONFIG_ZYNQ_GEM0 > #define CONFIG_ZYNQ_GEM_PHY_ADDR0 0 Just move CONFIG_SYS_SDRAM_SIZE to the per-board config. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: