diff options
author | Ye.Li <B37916@freescale.com> | 2014-09-29 23:26:29 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-09-30 12:21:14 +0200 |
commit | 661139faf7b03a8d88da55ee36ad4b0fb7e35964 (patch) | |
tree | 38567231786055535afcb119a1b6257a8e1e5767 /board/freescale/mx6qarm2/mx6qarm2.c | |
parent | b357503f1cdedade6d31991fa6aabb4174f92989 (diff) | |
download | u-boot-imx-661139faf7b03a8d88da55ee36ad4b0fb7e35964.zip u-boot-imx-661139faf7b03a8d88da55ee36ad4b0fb7e35964.tar.gz u-boot-imx-661139faf7b03a8d88da55ee36ad4b0fb7e35964.tar.bz2 |
imx: mx6dlarm2: Add support for i.MX6Q/DL arm2 LPDDR2 boards
Update the ddr scripts for LPDDR2 and add two build configs for LPDDR2
arm2 board. Since the LPDDR2 arm2 board has different DDR size, use
CONFIG_DDR_MB in defconfig to replace the PHYS_SDRAM_SIZE.
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'board/freescale/mx6qarm2/mx6qarm2.c')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index f2e577d..667dca5 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -32,7 +32,12 @@ DECLARE_GLOBAL_DATA_PTR; int dram_init(void) { - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); +#if defined(CONFIG_MX6DL) && !defined(CONFIG_MX6DL_LPDDR2) && \ + defined(CONFIG_DDR_32BIT) + gd->ram_size = ((phys_size_t)CONFIG_DDR_MB * 1024 * 1024) / 2; +#else + gd->ram_size = (phys_size_t)CONFIG_DDR_MB * 1024 * 1024; +#endif return 0; } |