Message ID | 1427752878-18426-9-git-send-email-dinguyen@opensource.altera.com |
---|---|
State | Superseded |
Delegated to: | Marek Vasut |
Headers | show |
On Tuesday, March 31, 2015 at 12:01:09 AM, dinguyen@opensource.altera.com wrote: > From: Dinh Nguyen <dinguyen@opensource.altera.com> > > Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> > Reviewed-by: Marek Vasut <marex@denx.de> Applied to u-boot-socfpga/next , thanks! Best regards, Marek Vasut
diff --git a/arch/arm/cpu/armv7/socfpga/spl.c b/arch/arm/cpu/armv7/socfpga/spl.c index 128fe7c..a008eac 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); }