diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 5dd30e31..bbbbccb4 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -440,6 +440,18 @@ static int gk20a_tegra_probe(struct platform_device *dev) | |||
440 | *platform = t132_gk20a_tegra_platform; | 440 | *platform = t132_gk20a_tegra_platform; |
441 | } | 441 | } |
442 | 442 | ||
443 | /* WAR for bug 1547668: Disable railgating and scaling irrespective of | ||
444 | * platform data if the rework has not been made. */ | ||
445 | |||
446 | if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA21) { | ||
447 | np = of_find_node_by_path("/gpu-dvfs-rework"); | ||
448 | if (!(np && of_device_is_available(np))) { | ||
449 | platform->can_railgate = false; | ||
450 | platform->devfreq_governor = ""; | ||
451 | dev_warn(&dev->dev, "board does not support scaling or powergating"); | ||
452 | } | ||
453 | } | ||
454 | |||
443 | gk20a_tegra_get_clocks(dev); | 455 | gk20a_tegra_get_clocks(dev); |
444 | 456 | ||
445 | return 0; | 457 | return 0; |