]> nv-tegra.nvidia Code Review - linux-4.9.git/commitdiff
platform: tegra: powergate: disable powergate for SE2 on T214
authorKrishna Reddy <vdumpa@nvidia.com>
Tue, 23 May 2017 22:07:29 +0000 (15:07 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 1 Jun 2017 22:33:48 +0000 (15:33 -0700)
ISP2 is replaced with SE2 on T214.
Disable powergate for SE2 on T214.

Bug 1811409

Change-Id: I53148f385a6a52b6995ed6d69ee3d0bb165925e5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1488276
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
drivers/platform/tegra/powergate/powergate-t21x.c

index 16482f8d311dbd2d8c667c96a3f2ad4b6e03406e..78647492cb3d356b1ae864193b40839b58c22ee6 100644 (file)
@@ -617,9 +617,22 @@ static spinlock_t *tegra210_pg_get_lock(void)
 
 static bool tegra210_pg_skip(int id)
 {
+       u32 hid, chipid, major;
+
+       hid = tegra_read_chipid();
+       chipid = tegra_hidrev_get_chipid(hid);
+       major = tegra_hidrev_get_majorrev(hid);
+
        switch (t210_pg_info[id].part_id) {
        case TEGRA210_POWER_DOMAIN_GPU:
                return true;
+       case TEGRA210_POWER_DOMAIN_VENC:
+       case TEGRA210_POWER_DOMAIN_VE2:
+               /* T214 has SE2 in place of ISP2 and powergate
+                * is not supported for SE2.
+                */
+               if (chipid == TEGRA210B01 && major >= 2)
+                       return true;
        default:
                return false;
        }