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()
136 /* Only need to enable aclk on single display mode, but no need to in komeda_crtc_prepare()
137 * enable aclk it on dual display mode, since the dual mode always in komeda_crtc_prepare()
138 * switch from single display mode, the aclk already enabled, no need in komeda_crtc_prepare()
142 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
144 DRM_ERROR("failed to set aclk.\n"); in komeda_crtc_prepare()
145 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare()
147 DRM_ERROR("failed to enable aclk.\n"); in komeda_crtc_prepare()
191 clk_disable_unprepare(mdev->aclk); in komeda_crtc_unprepare()
401 /* Returns the minimum frequency of the aclk rate (main engine clock) in Hz */
407 * the aclk needs run on the double rate of pxlclk in komeda_calc_min_aclk_rate()
415 /* Get current aclk rate that specified by state */
425 return clk_round_rate(mdev->aclk, min_aclk); in komeda_crtc_get_aclk()
450 if (clk_round_rate(mdev->aclk, min_aclk) < min_aclk) { in komeda_crtc_mode_valid()