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,12 +80,10 @@ u32 clk_avfs_get_vin_cal_fuse_v10(struct gk20a *g,
|
|||||||
"err reading vin cal for id %x", pvindev->super.id);
|
"err reading vin cal for id %x", pvindev->super.id);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
if (slope != 0 && intercept != 0) {
|
|
||||||
pvindev->data.vin_cal.cal_v10.slope = slope;
|
pvindev->data.vin_cal.cal_v10.slope = slope;
|
||||||
pvindev->data.vin_cal.cal_v10.intercept = intercept;
|
pvindev->data.vin_cal.cal_v10.intercept = intercept;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -111,12 +109,10 @@ u32 clk_avfs_get_vin_cal_fuse_v20(struct gk20a *g,
|
|||||||
"err reading vin cal for id %x", pvindev->super.id);
|
"err reading vin cal for id %x", pvindev->super.id);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
if (gain != 0 && offset != 0) {
|
|
||||||
pvindev->data.vin_cal.cal_v20.gain = gain;
|
pvindev->data.vin_cal.cal_v20.gain = gain;
|
||||||
pvindev->data.vin_cal.cal_v20.offset = offset;
|
pvindev->data.vin_cal.cal_v20.offset = offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user