In the clock init code, the DPLL value set by the bootloader is
queried, but always turns zero due it's parent clock (sys_ck) having
no default rate. This results in the improper setting of the default
PRCM rate-table entry and any queries of virt_prcm_set rate to return 0.
Rather than setting a static sys_ck.rate, detect the correct value at
boot time.
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
clk_init(&omap2_clk_functions);
omap2_osc_clk_recalc(&osc_ck);
clk_init(&omap2_clk_functions);
omap2_osc_clk_recalc(&osc_ck);
+ omap2_sys_clk_recalc(&sys_ck);
for (clkp = onchip_24xx_clks;
clkp < onchip_24xx_clks + ARRAY_SIZE(onchip_24xx_clks);
for (clkp = onchip_24xx_clks;
clkp < onchip_24xx_clks + ARRAY_SIZE(onchip_24xx_clks);