[U-Boot] [PATCH 3/8] zynq: Update CLK in bdinfo
Michal Simek
michal.simek at xilinx.com
Wed Jan 22 11:50:55 CET 2014
ARM has specific clk entries which should be also setup.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
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 0891a23..ea7a677 100644
--- a/arch/arm/cpu/armv7/zynq/clk.c
+++ b/arch/arm/cpu/armv7/zynq/clk.c
@@ -160,6 +160,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[dci_clk].frequency;
}
static void init_cpu_clocks(void)
@@ -592,6 +594,9 @@ int set_cpu_clk_info(void)
init_periph_clocks();
init_aper_clocks();
+ gd->bd->bi_arm_freq = gd->cpu_clk;
+ 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/20140122/097ec2e5/attachment.pgp>
More information about the U-Boot
mailing list