summaryrefslogtreecommitdiff
path: root/drivers/clk/versatile/clk-icst.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-06-11 15:29:54 (GMT)
committerMike Turquette <mturquette@linaro.org>2012-07-12 00:58:44 (GMT)
commit91b87a4795c42b97b8d18c3757eff352458ecef4 (patch)
tree4f50b6f6176db84294be1d114979f1375e90dafc /drivers/clk/versatile/clk-icst.h
parentd59fdcfc63a2d15b11dde10a85233b95cee0ad2e (diff)
downloadlinux-fsl-qoriq-91b87a4795c42b97b8d18c3757eff352458ecef4.tar.xz
clk: add versatile ICST307 driver
The ICST307 VCO clock has a shared driver in the ARM architecture. This patch provides a wrapper into the common clock framework so we can use the implementation in the ARM architecture without duplicating the code until all ARM platforms using this VCO are moved over. At that point we can merge the driver from the ARM platform into the generic file altogether. Cc: Russell King <linux@arm.linux.org.uk> Cc: Mike Turquette <mturquette@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> [mturquette@linaro.org: removed versatile Kconfig] Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/versatile/clk-icst.h')
-rw-r--r--drivers/clk/versatile/clk-icst.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/clk/versatile/clk-icst.h b/drivers/clk/versatile/clk-icst.h
new file mode 100644
index 0000000..71b4c56
--- /dev/null
+++ b/drivers/clk/versatile/clk-icst.h
@@ -0,0 +1,10 @@
+#include <asm/hardware/icst.h>
+
+struct clk_icst_desc {
+ const struct icst_params *params;
+ struct icst_vco (*getvco)(void);
+ void (*setvco)(struct icst_vco);
+};
+
+struct clk *icst_clk_register(struct device *dev,
+ const struct clk_icst_desc *desc);