summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ardbeg-power.c
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2014-05-05 16:10:57 -0700
committerRiham Haidar <rhaidar@nvidia.com>2014-05-07 12:10:44 -0700
commit5adedff5b2f46b07c01286bebbad12c17f7a47bf (patch)
tree2b3ae31ef3f8049177db9b959db5a5d7ca084a72 /arch/arm/mach-tegra/board-ardbeg-power.c
parenta5f6618850714d1fa66586e1ad629642b3b7ed3d (diff)
arm: tegra: thermal: clean up fuse check apis
Allow fuse check api to be called only to check the fuse revision. Bug 1429685 Change-Id: I0370f237c4562814af0f41a162bccff2b3db5371 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/405474 Reviewed-on: http://git-master/r/405990 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ardbeg-power.c')
-rw-r--r--arch/arm/mach-tegra/board-ardbeg-power.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-ardbeg-power.c b/arch/arm/mach-tegra/board-ardbeg-power.c
index a5343abdd1da..08ed22817cf2 100644
--- a/arch/arm/mach-tegra/board-ardbeg-power.c
+++ b/arch/arm/mach-tegra/board-ardbeg-power.c
@@ -717,8 +717,7 @@ static struct soctherm_throttle voltmon_throttle = {
int __init ardbeg_soctherm_init(void)
{
- s32 base_cp, shft_cp;
- u32 base_ft, shft_ft;
+ int cp_rev, ft_rev;
struct board_info pmu_board_info;
struct board_info board_info;
enum soctherm_therm_id therm_cpu;
@@ -731,6 +730,9 @@ int __init ardbeg_soctherm_init(void)
ardbeg_therm_pop, sizeof(ardbeg_therm_pop));
}
+ cp_rev = tegra_fuse_calib_base_get_cp(NULL, NULL);
+ ft_rev = tegra_fuse_calib_base_get_ft(NULL, NULL);
+
/* Bowmore and P1761 are T132 platforms: ATE rev check (TODO) */
if (board_info.board_id == BOARD_E1971 ||
board_info.board_id == BOARD_P1761 ||
@@ -747,8 +749,7 @@ int __init ardbeg_soctherm_init(void)
}
/* do this only for supported CP,FT fuses */
- if ((tegra_fuse_calib_base_get_cp(&base_cp, &shft_cp) >= 0) &&
- (tegra_fuse_calib_base_get_ft(&base_ft, &shft_ft) >= 0)) {
+ if ((cp_rev >= 0) && (ft_rev >= 0)) {
tegra_platform_edp_init(
ardbeg_soctherm_data.therm[therm_cpu].trips,
&ardbeg_soctherm_data.therm[therm_cpu].num_trips,