Lines Matching full:aclk
51 u64 pxlclk, aclk; in komeda_crtc_update_clock_ratio() local
59 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio()
61 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio()
137 /* Only need to enable aclk on single display mode, but no need to in komeda_crtc_prepare()
138 * enable aclk it on dual display mode, since the dual mode always in komeda_crtc_prepare()
139 * switch from single display mode, the aclk already enabled, no need in komeda_crtc_prepare()
143 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
145 DRM_ERROR("failed to set aclk.\n"); in komeda_crtc_prepare()
146 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare()
148 DRM_ERROR("failed to enable aclk.\n"); in komeda_crtc_prepare()
192 clk_disable_unprepare(mdev->aclk); in komeda_crtc_unprepare()
400 /* Returns the minimum frequency of the aclk rate (main engine clock) in Hz */
406 * the aclk needs run on the double rate of pxlclk in komeda_calc_min_aclk_rate()
414 /* Get current aclk rate that specified by state */
424 return clk_round_rate(mdev->aclk, min_aclk); in komeda_crtc_get_aclk()
449 if (clk_round_rate(mdev->aclk, min_aclk) < min_aclk) { in komeda_crtc_mode_valid()