Lines Matching full:aclk
50 u64 pxlclk, aclk; in komeda_crtc_update_clock_ratio() local
58 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio()
60 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio()
134 /* Only need to enable aclk on single display mode, but no need to in komeda_crtc_prepare()
135 * enable aclk it on dual display mode, since the dual mode always in komeda_crtc_prepare()
136 * switch from single display mode, the aclk already enabled, no need in komeda_crtc_prepare()
140 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
142 DRM_ERROR("failed to set aclk.\n"); in komeda_crtc_prepare()
143 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare()
145 DRM_ERROR("failed to enable aclk.\n"); in komeda_crtc_prepare()
189 clk_disable_unprepare(mdev->aclk); in komeda_crtc_unprepare()
391 /* Returns the minimum frequency of the aclk rate (main engine clock) in Hz */
397 * the aclk needs run on the double rate of pxlclk in komeda_calc_min_aclk_rate()
405 /* Get current aclk rate that specified by state */
415 return clk_round_rate(mdev->aclk, min_aclk); in komeda_crtc_get_aclk()
440 if (clk_round_rate(mdev->aclk, min_aclk) < min_aclk) { in komeda_crtc_mode_valid()