summaryrefslogtreecommitdiff
path: root/board/ge
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-07-23 13:23:40 -0300
committerStefano Babic <sbabic@denx.de>2016-07-28 13:27:20 +0200
commitc6a51bab174ecb4c6bebfada951ac556ffc13fcd (patch)
treed3882b9fcd582d4f5d41b8e402ffc31838416297 /board/ge
parent84c51687a79c4bac514c43c0c3a0118015e6b13c (diff)
downloadu-boot-imx-c6a51bab174ecb4c6bebfada951ac556ffc13fcd.zip
u-boot-imx-c6a51bab174ecb4c6bebfada951ac556ffc13fcd.tar.gz
u-boot-imx-c6a51bab174ecb4c6bebfada951ac556ffc13fcd.tar.bz2
bx50v3: Use imx_ddr_size() for calculating the DDR size
imx_ddr_size() can be used to calculate the DDR size in runtime. By using this function we no longer need to define PHYS_SDRAM_SIZE. Cc: Martin Donnelly <martin.donnelly@ge.com> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/ge')
-rw-r--r--board/ge/bx50v3/bx50v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index d45ed44..e9729f8 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -60,7 +60,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
+ gd->ram_size = imx_ddr_size();
return 0;
}