Beispiel #1
0
static void omap2_osc_clk_recalc(struct clk *clk, unsigned long parent_rate,
                                 u8 rate_storage)
{
    unsigned long rate;

    /* XXX osc_ck on 2xxx currently is parentless */
    rate = omap2_get_apll_clkin() * omap2_get_sysclkdiv();

    if (rate_storage == CURRENT_RATE)
        clk->rate = rate;
    else if (rate_storage == TEMP_RATE)
        clk->temp_rate = rate;
}
Beispiel #2
0
static void omap2_osc_clk_recalc(struct clk *clk)
{
    clk->rate = omap2_get_apll_clkin() * omap2_get_sysclkdiv();
    propagate_rate(clk);
}
Beispiel #3
0
static unsigned long omap2_osc_clk_recalc(struct clk *clk)
{
	return omap2_get_apll_clkin() * omap2_get_sysclkdiv();
}