From: Dinh Nguyen Date: Mon, 30 Mar 2015 22:01:09 +0000 (-0500) Subject: arm: socfpga: spl: printout sdram size X-Git-Tag: v2015.07-rc1~61^2~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=89ba82479e7854c5cf42d01cccd1afa81332b717;p=oweals%2Fu-boot.git arm: socfpga: spl: printout sdram size Signed-off-by: Dinh Nguyen Reviewed-by: Marek Vasut --- diff --git a/arch/arm/cpu/armv7/socfpga/spl.c b/arch/arm/cpu/armv7/socfpga/spl.c index 756c55af91..e7b4d299b9 100644 --- a/arch/arm/cpu/armv7/socfpga/spl.c +++ b/arch/arm/cpu/armv7/socfpga/spl.c @@ -54,6 +54,7 @@ u32 spl_boot_device(void) */ void spl_board_init(void) { + unsigned long sdram_size; #ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET cm_config_t cm_default_cfg = { /* main group */ @@ -187,4 +188,7 @@ void spl_board_init(void) puts("SDRAM calibration failed.\n"); hang(); } + + sdram_size = sdram_calculate_size(); + debug("SDRAM: %ld MiB\n", sdram_size >> 20); }