summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@opensource.altera.com>2015-03-30 17:01:09 -0500
committerMarek Vasut <marex@denx.de>2015-04-21 12:23:17 +0200
commit89ba82479e7854c5cf42d01cccd1afa81332b717 (patch)
tree35c5a29af80d4131bf7ab07b7b12fd79d9ba985b /arch/arm/cpu/armv7
parent37ef0c70d32c8115bbbb508680fcb65004849126 (diff)
arm: socfpga: spl: printout sdram size
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/socfpga/spl.c4
1 files changed, 4 insertions, 0 deletions
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);
}