blob: 04e6f0aef5889ad260aaced2b427f7487240dd37 [file] [log] [blame]
Linus Walleij91b87a42012-06-11 17:29:54 +02001#include <asm/hardware/icst.h>
2
Linus Walleij7a9ad672012-11-20 23:01:04 +01003/**
4 * struct clk_icst_desc - descriptor for the ICST VCO
5 * @params: ICST parameters
6 * @vco_offset: offset to the ICST VCO from the provided memory base
7 * @lock_offset: offset to the ICST VCO locking register from the provided
8 * memory base
9 */
Linus Walleij91b87a42012-06-11 17:29:54 +020010struct clk_icst_desc {
11 const struct icst_params *params;
Linus Walleij7a9ad672012-11-20 23:01:04 +010012 u32 vco_offset;
13 u32 lock_offset;
Linus Walleij91b87a42012-06-11 17:29:54 +020014};
15
16struct clk *icst_clk_register(struct device *dev,
Linus Walleij7a9ad672012-11-20 23:01:04 +010017 const struct clk_icst_desc *desc,
Linus Walleijae6e6942013-11-22 11:30:05 +010018 const char *name,
Linus Walleijbf6edb42014-01-20 21:31:41 +010019 const char *parent_name,
Linus Walleij7a9ad672012-11-20 23:01:04 +010020 void __iomem *base);