summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-versatile/include/plat/clock.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-03-01 16:18:39 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 09:35:38 +0100
commit9bf5b2ef673237e0e43161c56f70ac8bf24e43f9 (patch)
tree6b75855102d54da6ff6d7023ae00e25610e44f92 /arch/arm/plat-versatile/include/plat/clock.h
parent3081e43b97cb50a80ebd98ce4b60e4853ad38424 (diff)
downloadblackbird-op-linux-9bf5b2ef673237e0e43161c56f70ac8bf24e43f9.tar.gz
blackbird-op-linux-9bf5b2ef673237e0e43161c56f70ac8bf24e43f9.zip
ARM: Indirect round/set_rate operations through clk structure
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-versatile/include/plat/clock.h')
-rw-r--r--arch/arm/plat-versatile/include/plat/clock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/plat-versatile/include/plat/clock.h b/arch/arm/plat-versatile/include/plat/clock.h
new file mode 100644
index 000000000000..3cfb024ccd70
--- /dev/null
+++ b/arch/arm/plat-versatile/include/plat/clock.h
@@ -0,0 +1,15 @@
+#ifndef PLAT_CLOCK_H
+#define PLAT_CLOCK_H
+
+#include <asm/hardware/icst.h>
+
+struct clk_ops {
+ long (*round)(struct clk *, unsigned long);
+ int (*set)(struct clk *, unsigned long);
+ void (*setvco)(struct clk *, struct icst_vco);
+};
+
+int icst_clk_set(struct clk *, unsigned long);
+long icst_clk_round(struct clk *, unsigned long);
+
+#endif
OpenPOWER on IntegriCloud