Add dsp clock autoidle(DSP_FCLK, DSP_ICLK, INT_D_FCLK, INT_D_ICLK).
which are controled together by auto-control mode.
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
return -ENODEV;
}
+ dsp_clk_autoidle();
+
#if defined(CONFIG_ARCH_OMAP1)
dsp_ck_handle = clk_get(NULL, "dsp_ck");
if (IS_ERR(dsp_ck_handle)) {
void dsp_unregister_mem_cb(void);
#endif
+#if defined(CONFIG_ARCH_OMAP1)
+static inline void dsp_clk_autoidle(void) {}
+#elif defined(CONFIG_ARCH_OMAP2)
+static inline void dsp_clk_autoidle(void)
+{
+ /*XXX should be handled in mach-omap[1,2] XXX*/
+ PM_PWSTCTRL_DSP = (1 << 18) | (1 << 0);
+ CM_AUTOIDLE_DSP |= (1 << 1);
+ CM_CLKSTCTRL_DSP |= (1 << 0);
+}
+#endif
+
#endif /* DRIVER_DSP_COMMON_H */