Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <linus.walleij@linaro.org>
Link: https://lkml.kernel.org/r/20200219103326.81120-2-linus.walleij@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Linus Walleij and committed by
Stephen Boyd
eb9d6428 78c7d8f9

+28 -18
+7 -18
drivers/clk/versatile/clk-icst.c
··· 34 34 #define INTEGRATOR_AP_PCI_25_33_MHZ BIT(8) 35 35 36 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 - 48 - /** 49 37 * struct clk_icst - ICST VCO clock wrapper 50 38 * @hw: corresponding clock hardware entry 51 39 * @vcoreg: VCO register address ··· 332 344 .set_rate = icst_set_rate, 333 345 }; 334 346 335 - static 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) 347 + 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) 341 353 { 342 354 struct clk *clk; 343 355 struct clk_icst *icst; ··· 374 386 375 387 return clk; 376 388 } 389 + EXPORT_SYMBOL_GPL(icst_clk_setup); 377 390 378 391 struct clk *icst_clk_register(struct device *dev, 379 392 const struct clk_icst_desc *desc,
+21
drivers/clk/versatile/clk-icst.h
··· 1 1 /* 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 + 2 16 /** 3 17 * struct clk_icst_desc - descriptor for the ICST VCO 4 18 * @params: ICST parameters ··· 31 17 const char *name, 32 18 const char *parent_name, 33 19 void __iomem *base); 20 + 21 + struct clk *icst_clk_setup(struct device *dev, 22 + const struct clk_icst_desc *desc, 23 + const char *name, 24 + const char *parent_name, 25 + struct regmap *map, 26 + enum icst_control_type ctype);