drm/nouveau/platform: support for probing GP10B
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 29 Mar 2017 09:31:22 +0000 (18:31 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 6 Apr 2017 04:39:04 +0000 (14:39 +1000)
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c

index 49d9ba0e3c510a0bf2a7dcc6bb1484e101fc8d09..1ada186fab770aba7c598c2661d5fc0955218ad4 100644 (file)
@@ -62,6 +62,12 @@ static const struct nvkm_device_tegra_func gm20b_platform_data = {
        .require_ref_clk = true,
 };
 
+static const struct nvkm_device_tegra_func gp10b_platform_data = {
+       .iommu_bit = 36,
+       /* power provided by generic PM domains */
+       .require_vdd = false,
+};
+
 static const struct of_device_id nouveau_platform_match[] = {
        {
                .compatible = "nvidia,gk20a",
@@ -71,6 +77,10 @@ static const struct of_device_id nouveau_platform_match[] = {
                .compatible = "nvidia,gm20b",
                .data = &gm20b_platform_data,
        },
+       {
+               .compatible = "nvidia,gp10b",
+               .data = &gp10b_platform_data,
+       },
        { }
 };