summaryrefslogtreecommitdiff
path: root/board/armltd/vexpress
diff options
context:
space:
mode:
authorMatt Waddel <matt.waddel@linaro.org>2010-11-02 17:25:21 -0600
committerWolfgang Denk <wd@denx.de>2010-12-08 23:44:51 +0100
commit9d37cf310af1b9a6583396c98255fc86f9aab433 (patch)
treed405e4124d541a7d1f830c4c9208e310f38745cd /board/armltd/vexpress
parent7d38f8747466abb427b8cac8e7a2f9687cd97294 (diff)
downloadu-boot-imx-9d37cf310af1b9a6583396c98255fc86f9aab433.zip
u-boot-imx-9d37cf310af1b9a6583396c98255fc86f9aab433.tar.gz
u-boot-imx-9d37cf310af1b9a6583396c98255fc86f9aab433.tar.bz2
ARMV7: Vexpress: fix compile warnings
Fixed "pointer from integer without a cast" warnings in Vexpress. Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
Diffstat (limited to 'board/armltd/vexpress')
-rw-r--r--board/armltd/vexpress/ca9x4_ct_vxp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c
index 48dfc8c..c1c4ea1 100644
--- a/board/armltd/vexpress/ca9x4_ct_vxp.c
+++ b/board/armltd/vexpress/ca9x4_ct_vxp.c
@@ -95,16 +95,19 @@ static void flash__init(void)
int dram_init(void)
{
- gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
+ gd->ram_size =
+ get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
return 0;
}
void dram_init_banksize(void)
{
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
- gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
+ gd->bd->bi_dram[0].size =
+ get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
- gd->bd->bi_dram[1].size = get_ram_size(PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+ gd->bd->bi_dram[1].size =
+ get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
}
int timer_init(void)