hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/include/linux/clk/ti.h
....@@ -153,12 +153,14 @@
153153 u8 fixed_div;
154154 struct clk_omap_reg enable_reg;
155155 u8 enable_bit;
156
- u8 flags;
156
+ unsigned long flags;
157157 struct clk_omap_reg clksel_reg;
158158 struct dpll_data *dpll_data;
159159 const char *clkdm_name;
160160 struct clockdomain *clkdm;
161161 const struct clk_hw_omap_ops *ops;
162
+ u32 context;
163
+ int autoidle_count;
162164 };
163165
164166 /*
....@@ -241,6 +243,7 @@
241243
242244 #define to_clk_hw_omap(_hw) container_of(_hw, struct clk_hw_omap, hw)
243245
246
+bool omap2_clk_is_hw_omap(struct clk_hw *hw);
244247 int omap2_clk_disable_autoidle_all(void);
245248 int omap2_clk_enable_autoidle_all(void);
246249 int omap2_clk_allow_idle(struct clk *clk);
....@@ -290,9 +293,17 @@
290293 #define TI_CLK_DPLL4_DENY_REPROGRAM BIT(1)
291294 #define TI_CLK_DISABLE_CLKDM_CONTROL BIT(2)
292295 #define TI_CLK_ERRATA_I810 BIT(3)
296
+#define TI_CLK_CLKCTRL_COMPAT BIT(4)
297
+#define TI_CLK_DEVICE_TYPE_GP BIT(5)
293298
294299 void ti_clk_setup_features(struct ti_clk_features *features);
295300 const struct ti_clk_features *ti_clk_get_features(void);
301
+bool ti_clk_is_in_standby(struct clk *clk);
302
+int omap3_noncore_dpll_save_context(struct clk_hw *hw);
303
+void omap3_noncore_dpll_restore_context(struct clk_hw *hw);
304
+
305
+int omap3_core_dpll_save_context(struct clk_hw *hw);
306
+void omap3_core_dpll_restore_context(struct clk_hw *hw);
296307
297308 extern const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll;
298309