summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2015-02-27 18:54:14 +0300
committerTero Kristo <t-kristo@ti.com>2015-06-02 12:30:58 +0300
commitf3b19aa5cab65f7e73613aa37f6851ce56b794d1 (patch)
treed71464c084f3a7bb56568ae7291fe19561a8d222 /include
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff)
downloadlinux-f3b19aa5cab65f7e73613aa37f6851ce56b794d1.tar.xz
ARM: OMAP2+: clock: export driver API to setup/get clock features
As most of the clock driver support code is going to be moved under drivers/clk/ti, an API for setting / getting the SoC specific clock features is needed. This patch provides this API and changes the existing code to use it. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk/ti.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h
index 79b76e13d904..1a7f86a68f62 100644
--- a/include/linux/clk/ti.h
+++ b/include/linux/clk/ti.h
@@ -338,6 +338,22 @@ int am43xx_dt_clk_init(void);
int omap2420_dt_clk_init(void);
int omap2430_dt_clk_init(void);
+struct ti_clk_features {
+ u32 flags;
+ long fint_min;
+ long fint_max;
+ long fint_band1_max;
+ long fint_band2_min;
+ u8 dpll_bypass_vals;
+ u8 cm_idlest_val;
+};
+
+#define TI_CLK_DPLL_HAS_FREQSEL BIT(0)
+#define TI_CLK_DPLL4_DENY_REPROGRAM BIT(1)
+
+void ti_clk_setup_features(struct ti_clk_features *features);
+const struct ti_clk_features *ti_clk_get_features(void);
+
#ifdef CONFIG_OF
void of_ti_clk_allow_autoidle_all(void);
void of_ti_clk_deny_autoidle_all(void);