]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: socfpga: spl: printout sdram size
authorDinh Nguyen <dinguyen@opensource.altera.com>
Mon, 30 Mar 2015 22:01:09 +0000 (17:01 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:20 +0000 (22:29 +0200)
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Reviewed-by: Marek Vasut <marex@denx.de>
arch/arm/cpu/armv7/socfpga/spl.c

index 756c55af91e62c47fe040a2a8b2edb1f7a9e4991..e7b4d299b9259f87680d26ec16b13ac1775da485 100644 (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);
 }