Skip to content

Commit b6f27b2

Browse files
author
Tero Kristo
committed
clk: ti: add clkdm_lookup to the exported functions
This will be needed to move some additional clockdomain functionality under clock driver. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
1 parent 1ae79c4 commit b6f27b2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/arm/mach-omap2/clock.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ u16 cpu_mask;
5757
static struct ti_clk_ll_ops omap_clk_ll_ops = {
5858
.clkdm_clk_enable = clkdm_clk_enable,
5959
.clkdm_clk_disable = clkdm_clk_disable,
60+
.clkdm_lookup = clkdm_lookup,
6061
.cm_wait_module_ready = omap_cm_wait_module_ready,
6162
.cm_split_idlest_reg = cm_split_idlest_reg,
6263
};

‎include/linux/clk/ti.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ struct clk_omap_reg {
213213
* @clk_writel: pointer to register write function
214214
* @clkdm_clk_enable: pointer to clockdomain enable function
215215
* @clkdm_clk_disable: pointer to clockdomain disable function
216+
* @clkdm_lookup: pointer to clockdomain lookup function
216217
* @cm_wait_module_ready: pointer to CM module wait ready function
217218
* @cm_split_idlest_reg: pointer to CM module function to split idlest reg
218219
*
@@ -228,6 +229,7 @@ struct ti_clk_ll_ops {
228229
int (*clkdm_clk_enable)(struct clockdomain *clkdm, struct clk *clk);
229230
int (*clkdm_clk_disable)(struct clockdomain *clkdm,
230231
struct clk *clk);
232+
struct clockdomain * (*clkdm_lookup)(const char *name);
231233
int (*cm_wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg,
232234
u8 idlest_shift);
233235
int (*cm_split_idlest_reg)(void __iomem *idlest_reg, s16 *prcm_inst,

0 commit comments

Comments
 (0)