arm:tegra: updated fuse support for Jetson TK1
Bibek Basu [Mon, 23 Mar 2015 17:52:47 +0000 (22:52 +0530)]
Non negative value of cp_rev should be treated as
a newer properly fused chip

Bug 1610806

Change-Id: I7da1bec91996bbd5a522e2f043147b48272e0500
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/721053
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

arch/arm/mach-tegra/board-norrin-power.c

index 3b734b5..3599dc2 100644 (file)
@@ -338,13 +338,15 @@ int __init norrin_soctherm_init(void)
        cp_rev = tegra_fuse_calib_base_get_cp(NULL, NULL);
        ft_rev = tegra_fuse_calib_base_get_ft(NULL, NULL);
 
-       if (cp_rev) {
+       pr_info("FUSE: cp_rev %d ft_rev %d\n", cp_rev, ft_rev);
+       if (cp_rev && board_info.board_id != BOARD_PM375) {
                /* ATE rev is Old or Mid - use PLLx sensor only */
                norrin_soctherm_data.therm[THERM_CPU] =
                        norrin_v1_soctherm_data.therm[THERM_CPU];
                norrin_soctherm_data.therm[THERM_PLL] =
                        norrin_v1_soctherm_data.therm[THERM_PLL];
-               therm_cpu = THERM_PLL; /* override CPU with PLL zone */
+               therm_cpu = THERM_PLL;
+               /* override CPU with PLL zone */
        }
 
        /* do this only for supported CP,FT fuses */