Skip to content

Commit eb9d642

Browse files
linuswbebarino
authored andcommitted
clk: versatile: Export icst_clk_setup()
Export this clock setup method so we can register the IM-PD1 clocks with common code in the next step. Signed-off-by: Linus Walleij <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 78c7d8f commit eb9d642

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

drivers/clk/versatile/clk-icst.c

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@
3333

3434
#define INTEGRATOR_AP_PCI_25_33_MHZ BIT(8)
3535

36-
/**
37-
* enum icst_control_type - the type of ICST control register
38-
*/
39-
enum icst_control_type {
40-
ICST_VERSATILE, /* The standard type, all control bits available */
41-
ICST_INTEGRATOR_AP_CM, /* Only 8 bits of VDW available */
42-
ICST_INTEGRATOR_AP_SYS, /* Only 8 bits of VDW available */
43-
ICST_INTEGRATOR_AP_PCI, /* Odd bit pattern storage */
44-
ICST_INTEGRATOR_CP_CM_CORE, /* Only 8 bits of VDW and 3 bits of OD */
45-
ICST_INTEGRATOR_CP_CM_MEM, /* Only 8 bits of VDW and 3 bits of OD */
46-
};
47-
4836
/**
4937
* struct clk_icst - ICST VCO clock wrapper
5038
* @hw: corresponding clock hardware entry
@@ -344,12 +332,12 @@ static const struct clk_ops icst_ops = {
344332
.set_rate = icst_set_rate,
345333
};
346334

347-
static struct clk *icst_clk_setup(struct device *dev,
348-
const struct clk_icst_desc *desc,
349-
const char *name,
350-
const char *parent_name,
351-
struct regmap *map,
352-
enum icst_control_type ctype)
335+
struct clk *icst_clk_setup(struct device *dev,
336+
const struct clk_icst_desc *desc,
337+
const char *name,
338+
const char *parent_name,
339+
struct regmap *map,
340+
enum icst_control_type ctype)
353341
{
354342
struct clk *clk;
355343
struct clk_icst *icst;
@@ -386,6 +374,7 @@ static struct clk *icst_clk_setup(struct device *dev,
386374

387375
return clk;
388376
}
377+
EXPORT_SYMBOL_GPL(icst_clk_setup);
389378

390379
struct clk *icst_clk_register(struct device *dev,
391380
const struct clk_icst_desc *desc,

drivers/clk/versatile/clk-icst.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2+
struct regmap;
3+
4+
/**
5+
* enum icst_control_type - the type of ICST control register
6+
*/
7+
enum icst_control_type {
8+
ICST_VERSATILE, /* The standard type, all control bits available */
9+
ICST_INTEGRATOR_AP_CM, /* Only 8 bits of VDW available */
10+
ICST_INTEGRATOR_AP_SYS, /* Only 8 bits of VDW available */
11+
ICST_INTEGRATOR_AP_PCI, /* Odd bit pattern storage */
12+
ICST_INTEGRATOR_CP_CM_CORE, /* Only 8 bits of VDW and 3 bits of OD */
13+
ICST_INTEGRATOR_CP_CM_MEM, /* Only 8 bits of VDW and 3 bits of OD */
14+
};
15+
216
/**
317
* struct clk_icst_desc - descriptor for the ICST VCO
418
* @params: ICST parameters
@@ -17,3 +31,10 @@ struct clk *icst_clk_register(struct device *dev,
1731
const char *name,
1832
const char *parent_name,
1933
void __iomem *base);
34+
35+
struct clk *icst_clk_setup(struct device *dev,
36+
const struct clk_icst_desc *desc,
37+
const char *name,
38+
const char *parent_name,
39+
struct regmap *map,
40+
enum icst_control_type ctype);

0 commit comments

Comments
 (0)