OMAP3/4: DPLL: Add allow_idle/deny_idle support for all DPLL's
All OMAP3/4 dpll's support hardware level autogating. Populate allow_idle/deny_idle function pointers for all DPLL's in clkops. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
committed by
Paul Walmsley
parent
58e846fe78
commit
6c6f5a7437
@@ -377,11 +377,17 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
|
|||||||
const struct clkops clkops_omap3_noncore_dpll_ops = {
|
const struct clkops clkops_omap3_noncore_dpll_ops = {
|
||||||
.enable = omap3_noncore_dpll_enable,
|
.enable = omap3_noncore_dpll_enable,
|
||||||
.disable = omap3_noncore_dpll_disable,
|
.disable = omap3_noncore_dpll_disable,
|
||||||
|
.allow_idle = omap3_dpll_allow_idle,
|
||||||
|
.deny_idle = omap3_dpll_deny_idle,
|
||||||
|
};
|
||||||
|
|
||||||
|
const struct clkops clkops_omap3_core_dpll_ops = {
|
||||||
|
.allow_idle = omap3_dpll_allow_idle,
|
||||||
|
.deny_idle = omap3_dpll_deny_idle,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* OMAP2+ clock reset and init functions
|
* OMAP2+ clock reset and init functions
|
||||||
*/
|
*/
|
||||||
|
@@ -146,5 +146,6 @@ extern void omap2_clk_exit_cpufreq_table(struct cpufreq_frequency_table **table)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const struct clkops clkops_omap3_noncore_dpll_ops;
|
extern const struct clkops clkops_omap3_noncore_dpll_ops;
|
||||||
|
extern const struct clkops clkops_omap3_core_dpll_ops;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -429,7 +429,7 @@ static struct dpll_data dpll3_dd = {
|
|||||||
|
|
||||||
static struct clk dpll3_ck = {
|
static struct clk dpll3_ck = {
|
||||||
.name = "dpll3_ck",
|
.name = "dpll3_ck",
|
||||||
.ops = &clkops_null,
|
.ops = &clkops_omap3_core_dpll_ops,
|
||||||
.parent = &sys_ck,
|
.parent = &sys_ck,
|
||||||
.dpll_data = &dpll3_dd,
|
.dpll_data = &dpll3_dd,
|
||||||
.round_rate = &omap2_dpll_round_rate,
|
.round_rate = &omap2_dpll_round_rate,
|
||||||
|
@@ -443,7 +443,7 @@ static struct clk dpll_core_ck = {
|
|||||||
.parent = &sys_clkin_ck,
|
.parent = &sys_clkin_ck,
|
||||||
.dpll_data = &dpll_core_dd,
|
.dpll_data = &dpll_core_dd,
|
||||||
.init = &omap2_init_dpll_parent,
|
.init = &omap2_init_dpll_parent,
|
||||||
.ops = &clkops_null,
|
.ops = &clkops_omap3_core_dpll_ops,
|
||||||
.recalc = &omap3_dpll_recalc,
|
.recalc = &omap3_dpll_recalc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user