summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu/include
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/include
parente25d5a95e7ff45b18e3d9dfac24efd35377abf53 (diff)
downloadtalos-obmc-uboot-d718bf2c9e4970745e2acaf88d1cf3192eec2bd8.tar.gz
talos-obmc-uboot-d718bf2c9e4970745e2acaf88d1cf3192eec2bd8.zip
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/include')
-rw-r--r--arch/arm/mach-mvebu/include/mach/cpu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/include/mach/cpu.h b/arch/arm/mach-mvebu/include/mach/cpu.h
index 5e8bf0c4ce..47f45c1512 100644
--- a/arch/arm/mach-mvebu/include/mach/cpu.h
+++ b/arch/arm/mach-mvebu/include/mach/cpu.h
@@ -106,6 +106,14 @@ struct kwgpio_registers {
u32 irq_level;
};
+struct sar_freq_modes {
+ u8 val;
+ u8 ffc; /* Fabric Frequency Configuration */
+ u32 p_clk;
+ u32 nb_clk;
+ u32 d_clk;
+};
+
/* Needed for dynamic (board-specific) mbus configuration */
extern struct mvebu_mbus_state mbus_state;
@@ -123,6 +131,8 @@ void return_to_bootrom(void);
int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks);
+void get_sar_freq(struct sar_freq_modes *sar_freq);
+
/*
* Highspeed SERDES PHY config init, ported from bin_hdr
* to mainline U-Boot
OpenPOWER on IntegriCloud