summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-02-24 15:06:34 +0100
committerTero Kristo <t-kristo@ti.com>2014-05-28 11:30:02 +0200
commit4d008589e271e28eae728eef7f5fb1f658f12b9f (patch)
tree8b30eee15659aa978c5b452b65647662cc90c8c3 /include
parentCLK: TI: DPLL: add support for omap2 core dpll (diff)
downloadlinux-4d008589e271e28eae728eef7f5fb1f658f12b9f.tar.xz
linux-4d008589e271e28eae728eef7f5fb1f658f12b9f.zip
CLK: TI: APLL: add support for omap2 aplls
This patch adds support for omap2 type aplls, which have gating and autoidle functionality. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk/ti.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h
index 753878c6fa52..44bf84002a34 100644
--- a/include/linux/clk/ti.h
+++ b/include/linux/clk/ti.h
@@ -94,7 +94,26 @@ struct dpll_data {
u8 flags;
};
-struct clk_hw_omap_ops;
+struct clk_hw_omap;
+
+/**
+ * struct clk_hw_omap_ops - OMAP clk ops
+ * @find_idlest: find idlest register information for a clock
+ * @find_companion: find companion clock register information for a clock,
+ * basically converts CM_ICLKEN* <-> CM_FCLKEN*
+ * @allow_idle: enables autoidle hardware functionality for a clock
+ * @deny_idle: prevent autoidle hardware functionality for a clock
+ */
+struct clk_hw_omap_ops {
+ void (*find_idlest)(struct clk_hw_omap *oclk,
+ void __iomem **idlest_reg,
+ u8 *idlest_bit, u8 *idlest_val);
+ void (*find_companion)(struct clk_hw_omap *oclk,
+ void __iomem **other_reg,
+ u8 *other_bit);
+ void (*allow_idle)(struct clk_hw_omap *oclk);
+ void (*deny_idle)(struct clk_hw_omap *oclk);
+};
/**
* struct clk_hw_omap - OMAP struct clk