arm: tegra: fix cpu speedo check for UCM1
Bibek Basu [Thu, 15 Dec 2016 08:23:27 +0000 (13:23 +0530)]
for UCM1 CD575M, check for cpu speedo 5 to
apply edp contraints

Bug 200195229
Bug 200199079

Change-Id: I704dd64f32c82c7499b6c5f0c96c04fdc062cf71
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1271709
GVS: Gerrit_Virtual_Submit

arch/arm/mach-tegra/edp.c

index 7568544..0e13bb1 100644 (file)
@@ -480,7 +480,7 @@ static int init_cpu_edp_limits_calculated(void)
                                        else if (tegra_cpu_speedo_id() == 8)
                                                limit = 1887000;
                                        /* CD575M UCM1 default */
-                                       else if (tegra_cpu_speedo_id() == -1)
+                                       else if (tegra_cpu_speedo_id() == 5)
                                                limit = 1887000;
                        } else
                                limit = cpu_edp_calculate_maxf(params,