Commit e97a951f authored by Mikko Perttunen's avatar Mikko Perttunen Committed by Thierry Reding

drm/tegra: Bump VIC/NVDEC clock rates to Fmax

To get full performance out of these engines, bump their clock rates
to maximum. In the future we may want something smarter but this
should be fine for now.
Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 46f226c9
...@@ -374,6 +374,12 @@ static int nvdec_probe(struct platform_device *pdev) ...@@ -374,6 +374,12 @@ static int nvdec_probe(struct platform_device *pdev)
return PTR_ERR(nvdec->clk); return PTR_ERR(nvdec->clk);
} }
err = clk_set_rate(nvdec->clk, ULONG_MAX);
if (err < 0) {
dev_err(&pdev->dev, "failed to set clock rate\n");
return err;
}
err = of_property_read_u32(dev->of_node, "nvidia,host1x-class", &host_class); err = of_property_read_u32(dev->of_node, "nvidia,host1x-class", &host_class);
if (err < 0) if (err < 0)
host_class = HOST1X_CLASS_NVDEC; host_class = HOST1X_CLASS_NVDEC;
......
...@@ -441,6 +441,12 @@ static int vic_probe(struct platform_device *pdev) ...@@ -441,6 +441,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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment