[U-Boot] [PATCH v2] zynq: Update CLK in bdinfo
Michal Simek
michal.simek at xilinx.com
Wed Feb 5 08:18:35 CET 2014
ARM has specific clk entries which should be also setup.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
Changes in v2:
- Freq is expected to be in MHz
- Use different DDR clock input
arch/arm/cpu/armv7/zynq/clk.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/cpu/armv7/zynq/clk.c b/arch/arm/cpu/armv7/zynq/clk.c
index 4307111..d2885dc 100644
--- a/arch/arm/cpu/armv7/zynq/clk.c
+++ b/arch/arm/cpu/armv7/zynq/clk.c
@@ -161,6 +161,8 @@ static void init_ddr_clocks(void)
clks[dci_clk].frequency = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST(prate, div0), div1);
clks[dci_clk].name = "dci";
+
+ gd->bd->bi_ddr_freq = clks[ddr3x_clk].frequency / 1000000;
}
static void init_cpu_clocks(void)
@@ -593,6 +595,9 @@ int set_cpu_clk_info(void)
init_periph_clocks();
init_aper_clocks();
+ gd->bd->bi_arm_freq = gd->cpu_clk / 1000000;
+ gd->bd->bi_dsp_freq = 0;
+
return 0;
}
--
1.8.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140205/97b6d946/attachment.pgp>
More information about the U-Boot
mailing list