@@ -438,6 +438,14 @@ long omap2_clksel_round_rate(struct clk *clk, unsigned long target_rate,
return omap2_clksel_round_rate_div(oclk, target_rate, &new_div);
}
+long omap2_passthrough_round_rate(struct clk *clk, unsigned long target_rate,
+ unsigned long *parent_rate)
+{
+ *parent_rate = target_rate;
+
+ return clk->rate;
+}
+
/**
* omap2_clksel_set_rate() - program clock rate in hardware
* @clk: struct clk * to program rate
@@ -86,6 +86,8 @@ struct clk *omap2_init_clksel_parent(struct clk *clk);
unsigned long omap2_clksel_recalc(struct clk *clk);
long omap2_clksel_round_rate(struct clk *clk, unsigned long target_rate,
unsigned long *parent_rate);
+long omap2_passthrough_round_rate(struct clk *clk, unsigned long target_rate,
+ unsigned long *parent_rate);
int omap2_clksel_set_rate(struct clk *clk, unsigned long rate);
int omap2_clksel_set_parent(struct clk *clk, struct clk *new_parent);