return readl(mfg->shared_mem + GF_REG_FREQ_OUT_GPU) * HZ_PER_KHZ;
}
-static long mtk_mfg_round_rate(struct clk_hw *hw, unsigned long rate,
- unsigned long *parent_rate)
+static int mtk_mfg_determine_rate(struct clk_hw *hw,
+ struct clk_rate_request *req)
{
/*
- * The round_rate callback needs to be implemented to avoid returning
+ * The determine_rate callback needs to be implemented to avoid returning
* the current clock frequency, rather than something even remotely
* close to the frequency that was asked for.
*
* high current frequency, breaking the powersave governor in the process.
*/
- return rate;
+ return 0;
}
static unsigned long mtk_mfg_recalc_rate_stack(struct clk_hw *hw,
static const struct clk_ops mtk_mfg_clk_gpu_ops = {
.recalc_rate = mtk_mfg_recalc_rate_gpu,
- .round_rate = mtk_mfg_round_rate,
+ .determine_rate = mtk_mfg_determine_rate,
};
static const struct clk_ops mtk_mfg_clk_stack_ops = {
.recalc_rate = mtk_mfg_recalc_rate_stack,
- .round_rate = mtk_mfg_round_rate,
+ .determine_rate = mtk_mfg_determine_rate,
};
static const struct clk_init_data mtk_mfg_clk_gpu_init = {