arm: socfpga: spl: printout sdram size

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
Dinh Nguyen 2015-03-30 17:01:09 -05:00 committed by Marek Vasut
parent 37ef0c70d3
commit 89ba82479e

View file

@ -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);
}