mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: allow a calibration parameter to be zero
It is allowed for some calibration parameters to be zero, when the others are non-zero. Pass all calibration parameters to PMU. Bug 2331655 Change-Id: I953a40e37211169e1aefd80aef2545a1b6a0afa1 Reviewed-on: https://git-master.nvidia.com/r/1810994 Reviewed-by: David Jarrett <djarrett@nvidia.com> Tested-by: David Jarrett <djarrett@nvidia.com> Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1817580 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
48ca15d839
commit
c1e80da2c5
@@ -80,10 +80,8 @@ u32 clk_avfs_get_vin_cal_fuse_v10(struct gk20a *g,
|
||||
"err reading vin cal for id %x", pvindev->super.id);
|
||||
return status;
|
||||
}
|
||||
if (slope != 0 && intercept != 0) {
|
||||
pvindev->data.vin_cal.cal_v10.slope = slope;
|
||||
pvindev->data.vin_cal.cal_v10.intercept = intercept;
|
||||
}
|
||||
pvindev->data.vin_cal.cal_v10.slope = slope;
|
||||
pvindev->data.vin_cal.cal_v10.intercept = intercept;
|
||||
}
|
||||
}
|
||||
return status;
|
||||
@@ -111,10 +109,8 @@ u32 clk_avfs_get_vin_cal_fuse_v20(struct gk20a *g,
|
||||
"err reading vin cal for id %x", pvindev->super.id);
|
||||
return status;
|
||||
}
|
||||
if (gain != 0 && offset != 0) {
|
||||
pvindev->data.vin_cal.cal_v20.gain = gain;
|
||||
pvindev->data.vin_cal.cal_v20.offset = offset;
|
||||
}
|
||||
pvindev->data.vin_cal.cal_v20.gain = gain;
|
||||
pvindev->data.vin_cal.cal_v20.offset = offset;
|
||||
}
|
||||
}
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user