diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2018-08-31 19:18:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-20 13:51:21 -0400 |
commit | c1e80da2c56e39b2b105014c8fb02c5e78eb0449 (patch) | |
tree | bd56dda87a1db31183cf6acf1fd34751ba82b5d2 /drivers/gpu | |
parent | 48ca15d8390182afb23bdcc8766d85c994d7f09d (diff) |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_vin.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_vin.c b/drivers/gpu/nvgpu/clk/clk_vin.c index 59a74d6b..e0a4a5b6 100644 --- a/drivers/gpu/nvgpu/clk/clk_vin.c +++ b/drivers/gpu/nvgpu/clk/clk_vin.c | |||
@@ -80,10 +80,8 @@ u32 clk_avfs_get_vin_cal_fuse_v10(struct gk20a *g, | |||
80 | "err reading vin cal for id %x", pvindev->super.id); | 80 | "err reading vin cal for id %x", pvindev->super.id); |
81 | return status; | 81 | return status; |
82 | } | 82 | } |
83 | if (slope != 0 && intercept != 0) { | 83 | pvindev->data.vin_cal.cal_v10.slope = slope; |
84 | pvindev->data.vin_cal.cal_v10.slope = slope; | 84 | pvindev->data.vin_cal.cal_v10.intercept = intercept; |
85 | pvindev->data.vin_cal.cal_v10.intercept = intercept; | ||
86 | } | ||
87 | } | 85 | } |
88 | } | 86 | } |
89 | return status; | 87 | return status; |
@@ -111,10 +109,8 @@ u32 clk_avfs_get_vin_cal_fuse_v20(struct gk20a *g, | |||
111 | "err reading vin cal for id %x", pvindev->super.id); | 109 | "err reading vin cal for id %x", pvindev->super.id); |
112 | return status; | 110 | return status; |
113 | } | 111 | } |
114 | if (gain != 0 && offset != 0) { | 112 | pvindev->data.vin_cal.cal_v20.gain = gain; |
115 | pvindev->data.vin_cal.cal_v20.gain = gain; | 113 | pvindev->data.vin_cal.cal_v20.offset = offset; |
116 | pvindev->data.vin_cal.cal_v20.offset = offset; | ||
117 | } | ||
118 | } | 114 | } |
119 | } | 115 | } |
120 | return status; | 116 | return status; |