summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2014-05-02 17:28:05 -0700
committerTom Rini <trini@ti.com>2014-05-12 15:20:05 -0400
commitfa39ffe5d61bd7f34b2ff579f5f6bb8f92a6b9b1 (patch)
tree7fabf8a543f0199125427167aaa3649b4ae90c7d
parent2a1680e30e3fa8257b60cb9dbd7add32539ac470 (diff)
downloadu-boot-imx-fa39ffe5d61bd7f34b2ff579f5f6bb8f92a6b9b1.zip
u-boot-imx-fa39ffe5d61bd7f34b2ff579f5f6bb8f92a6b9b1.tar.gz
u-boot-imx-fa39ffe5d61bd7f34b2ff579f5f6bb8f92a6b9b1.tar.bz2
common/board_f: Fix size variable
DRAM size should use 64-bit variable when the size could be more than 4GB. Caught and verified on P4080DS with 4GB DDR. Signed-off-by: York Sun <yorksun@freescale.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/board_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index b6be386..4ea4cb2 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -194,7 +194,7 @@ static int init_func_ram(void)
static int show_dram_config(void)
{
- ulong size;
+ unsigned long long size;
#ifdef CONFIG_NR_DRAM_BANKS
int i;