summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/dram.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-12-21 12:36:40 +0100
committerStefan Roese <sr@denx.de>2016-01-14 14:08:59 +0100
commitd718bf2c9e4970745e2acaf88d1cf3192eec2bd8 (patch)
tree382fac9e39d6b3fa34ef9977db127146ac1865b8 /arch/arm/mach-mvebu/dram.c
parente25d5a95e7ff45b18e3d9dfac24efd35377abf53 (diff)
downloadu-boot-imx-d718bf2c9e4970745e2acaf88d1cf3192eec2bd8.zip
u-boot-imx-d718bf2c9e4970745e2acaf88d1cf3192eec2bd8.tar.gz
u-boot-imx-d718bf2c9e4970745e2acaf88d1cf3192eec2bd8.tar.bz2
arm: mvebu: Print CPU and SDRAM frequency upon startup
With this patch, the CPU and the DDR frequencies will get printed in the U-Boot startup messages. Resulting in such a log: U-Boot 2016.01-rc2-00188-gb8eeaec-dirty (Dec 21 2015 - 12:32:35 +0100) SoC: MV78460-B0 at 1600 MHz I2C: ready DRAM: 4 GiB (800 MHz, ECC not enabled) ... Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'arch/arm/mach-mvebu/dram.c')
-rw-r--r--arch/arm/mach-mvebu/dram.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/dram.c b/arch/arm/mach-mvebu/dram.c
index ddc5b7e..059151a 100644
--- a/arch/arm/mach-mvebu/dram.c
+++ b/arch/arm/mach-mvebu/dram.c
@@ -292,11 +292,18 @@ void dram_init_banksize(void)
}
}
+#if defined(CONFIG_ARMADA_XP)
void board_add_ram_info(int use_default)
{
+ struct sar_freq_modes sar_freq;
+
+ get_sar_freq(&sar_freq);
+ printf(" (%d MHz, ", sar_freq.d_clk);
+
if (ecc_enabled())
- printf(" (ECC");
+ printf("ECC");
else
- printf(" (ECC not");
+ printf("ECC not");
printf(" enabled)");
}
+#endif