xref: /openbmc/linux/drivers/clk/versatile/clk-icst.h (revision bf6edb4b)
191b87a47SLinus Walleij #include <asm/hardware/icst.h>
291b87a47SLinus Walleij 
37a9ad671SLinus Walleij /**
47a9ad671SLinus Walleij  * struct clk_icst_desc - descriptor for the ICST VCO
57a9ad671SLinus Walleij  * @params: ICST parameters
67a9ad671SLinus Walleij  * @vco_offset: offset to the ICST VCO from the provided memory base
77a9ad671SLinus Walleij  * @lock_offset: offset to the ICST VCO locking register from the provided
87a9ad671SLinus Walleij  *	memory base
97a9ad671SLinus Walleij  */
1091b87a47SLinus Walleij struct clk_icst_desc {
1191b87a47SLinus Walleij 	const struct icst_params *params;
127a9ad671SLinus Walleij 	u32 vco_offset;
137a9ad671SLinus Walleij 	u32 lock_offset;
1491b87a47SLinus Walleij };
1591b87a47SLinus Walleij 
1691b87a47SLinus Walleij struct clk *icst_clk_register(struct device *dev,
177a9ad671SLinus Walleij 			      const struct clk_icst_desc *desc,
18ae6e694eSLinus Walleij 			      const char *name,
19bf6edb4bSLinus Walleij 			      const char *parent_name,
207a9ad671SLinus Walleij 			      void __iomem *base);
21