summaryrefslogtreecommitdiff
path: root/board/boundary/nitrogen6x
diff options
context:
space:
mode:
authorfabio.estevam@freescale.com <fabio.estevam@freescale.com>2013-03-14 02:32:55 +0000
committerStefano Babic <sbabic@denx.de>2013-03-15 14:39:44 +0100
commit19a0f7fa271de0345bb2df90d443c547c41e8037 (patch)
tree0ebaca0c9571ef090d05923b6c236cc3ca535ebf /board/boundary/nitrogen6x
parent030752addc757190a65154dd4d77c9b7044c063e (diff)
downloadu-boot-imx-19a0f7fa271de0345bb2df90d443c547c41e8037.zip
u-boot-imx-19a0f7fa271de0345bb2df90d443c547c41e8037.tar.gz
u-boot-imx-19a0f7fa271de0345bb2df90d443c547c41e8037.tar.bz2
nitrogen: Use unsigned long to specify the total RAM size
When building for the nitrogen boards with 2GiB the following warning happens: nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow] 2GiB can not fit in 32-bits, so use ulong instead. Reported-by: Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/boundary/nitrogen6x')
-rw-r--r--board/boundary/nitrogen6x/nitrogen6x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 0dbb6d2..229c237 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -86,7 +86,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = CONFIG_DDR_MB * 1024 * 1024;
+ gd->ram_size = ((ulong)CONFIG_DDR_MB * 1024 * 1024);
return 0;
}