Lines Matching full:clk_main
47 struct clk *clk_main; member
85 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
92 err = clk_prepare_enable(mdp->clk_main); in mtk_disp_pwm_apply()
94 dev_err(chip->dev, "Can't enable mdp->clk_main: %pe\n", in mtk_disp_pwm_apply()
103 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
118 rate = clk_get_rate(mdp->clk_main); in mtk_disp_pwm_apply()
124 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
182 err = clk_prepare_enable(mdp->clk_main); in mtk_disp_pwm_get_state()
184 dev_err(chip->dev, "Can't enable mdp->clk_main: %pe\n", ERR_PTR(err)); in mtk_disp_pwm_get_state()
191 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_get_state()
205 rate = clk_get_rate(mdp->clk_main); in mtk_disp_pwm_get_state()
222 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_get_state()
248 mdp->clk_main = devm_clk_get(&pdev->dev, "main"); in mtk_disp_pwm_probe()
249 if (IS_ERR(mdp->clk_main)) in mtk_disp_pwm_probe()
250 return PTR_ERR(mdp->clk_main); in mtk_disp_pwm_probe()