diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-06-11 17:29:54 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-07-11 17:58:44 -0700 |
commit | 91b87a4795c42b97b8d18c3757eff352458ecef4 (patch) | |
tree | 4f50b6f6176db84294be1d114979f1375e90dafc /drivers/clk/versatile/clk-icst.h | |
parent | d59fdcfc63a2d15b11dde10a85233b95cee0ad2e (diff) | |
download | op-kernel-dev-91b87a4795c42b97b8d18c3757eff352458ecef4.zip op-kernel-dev-91b87a4795c42b97b8d18c3757eff352458ecef4.tar.gz |
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.h | 10 |
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); |