UPSTREAM: drm/tegra: Bump VIC clock rate to Fmax

To get full performance out of this engine, bump their clock rate
to maximum. In the future we may want something smarter but this
should be fine for now.

Change-Id: I2b05bec99dc63f670b0d54cb71715dec2b8f57ee
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2599710
(cherry picked from commit d9fc58e4a1e776993f039c7298a4cc3150704dc5)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2620154
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Mikko Perttunen
2021-09-16 18:09:20 +03:00
committed by Laxman Dewangan
parent abbda4e63b
commit 3f528cb16c

View File

@@ -443,6 +443,12 @@ static int vic_probe(struct platform_device *pdev)
return PTR_ERR(vic->clk); return PTR_ERR(vic->clk);
} }
err = clk_set_rate(vic->clk, ULONG_MAX);
if (err < 0) {
dev_err(&pdev->dev, "failed to set clock rate\n");
return err;
}
if (!dev->pm_domain) { if (!dev->pm_domain) {
vic->rst = devm_reset_control_get(dev, "vic"); vic->rst = devm_reset_control_get(dev, "vic");
if (IS_ERR(vic->rst)) { if (IS_ERR(vic->rst)) {