diff mbox

[U-Boot,v2,2/2] common/board_f: Fix size variable

Message ID 1398893511-22085-2-git-send-email-yorksun@freescale.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

York Sun April 30, 2014, 9:31 p.m. UTC
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>
---
Change log

 v2: no change since v1

 common/board_f.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/common/board_f.c b/common/board_f.c
index eebb377..9cfab74 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;