Lines Matching full:aclk
49 u64 pxlclk, aclk; in komeda_crtc_update_clock_ratio() local
57 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio()
59 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio()
135 /* Only need to enable aclk on single display mode, but no need to in komeda_crtc_prepare()
136 * enable aclk it on dual display mode, since the dual mode always in komeda_crtc_prepare()
137 * switch from single display mode, the aclk already enabled, no need in komeda_crtc_prepare()
141 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
143 DRM_ERROR("failed to set aclk.\n"); in komeda_crtc_prepare()
144 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare()
146 DRM_ERROR("failed to enable aclk.\n"); in komeda_crtc_prepare()
190 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()