Commit 19a0f7fa authored by fabio.estevam@freescale.com's avatar fabio.estevam@freescale.com Committed by Stefano Babic

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: default avatarAlbert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent 030752ad
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment