sama5d3xek: support larger than 4G nand flash
authorWu, Josh <Josh.wu@atmel.com>
Fri, 18 Oct 2013 09:46:32 +0000 (17:46 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 21 Nov 2013 19:33:41 +0000 (13:33 -0600)
Signed-off-by: Josh Wu <josh.wu@atmel.com>
board/atmel/sama5d3xek/sama5d3xek.c

index b0965ef211896f20aa12b4233fa72c7a2be35e1d..83fd63f5417a277ff608a19416cb5966fa12f678 100644 (file)
@@ -131,7 +131,8 @@ static void sama5d3xek_lcd_hw_init(void)
 
 void lcd_show_board_info(void)
 {
-       ulong dram_size, nand_size;
+       ulong dram_size;
+       uint64_t nand_size;
        int i;
        char temp[32];
 
@@ -150,7 +151,7 @@ void lcd_show_board_info(void)
        for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
                nand_size += nand_info[i].size;
 #endif
-       lcd_printf("%ld MB SDRAM, %ld MB NAND\n",
+       lcd_printf("%ld MB SDRAM, %lld MB NAND\n",
                   dram_size >> 20, nand_size >> 20);
 }
 #endif /* CONFIG_LCD_INFO */