diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2016-04-01 11:37:44 +0900 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-04-06 16:06:51 +1000 |
commit | 34440ed697aed2588d3e99bbdc75700a967bd1bd (patch) | |
tree | 035dc71ef053b46ba0231a902a14890d6ca4931c /drivers/gpu/drm/nouveau/nouveau_platform.c | |
parent | 52829d4fabaf71748f16126d421dbefbfcf1319a (diff) | |
download | linux-next-34440ed697aed2588d3e99bbdc75700a967bd1bd.tar.gz |
drm/nouveau/tegra: acquire and enable reference clock if needed
GM20B requires an extra clock compared to GK20A. Add that information
into the platform data and acquire and enable this clock if necessary.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_platform.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_platform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 2dfe58af12e4..4c4cc2260257 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -55,6 +55,11 @@ static const struct nvkm_device_tegra_func gk20a_platform_data = { .iommu_bit = 34, }; +static const struct nvkm_device_tegra_func gm20b_platform_data = { + .iommu_bit = 34, + .require_ref_clk = true, +}; + static const struct of_device_id nouveau_platform_match[] = { { .compatible = "nvidia,gk20a", @@ -62,7 +67,7 @@ static const struct of_device_id nouveau_platform_match[] = { }, { .compatible = "nvidia,gm20b", - .data = &gk20a_platform_data, + .data = &gm20b_platform_data, }, { } }; |