mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: set calibration type for VIN devices
Calibration type was not initialized for VIN devices 2.0 This was leading to using the older calibration method. Fix calibration type when parsing VBIOS. Bug 2331655 Change-Id: I935f2a1812b8934dd8d3cd7e7d9c335a979a154e Reviewed-on: https://git-master.nvidia.com/r/1810379 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: David Jarrett <djarrett@nvidia.com> Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1817579 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
ab7280a2c1
commit
48ca15d839
@@ -354,6 +354,7 @@ static int devinit_get_vin_device_table(struct gk20a *g,
|
||||
vin_device_data.vin_device_v10.data.vin_cal.intercept = intercept;
|
||||
break;
|
||||
case CTRL_CLK_VIN_TYPE_V20:
|
||||
vin_device_data.vin_device_v20.data.cal_type = (u8) cal_type;
|
||||
vin_device_data.vin_device_v20.data.vin_cal.cal_v20.offset = offset;
|
||||
vin_device_data.vin_device_v20.data.vin_cal.cal_v20.gain = gain;
|
||||
break;
|
||||
@@ -429,6 +430,7 @@ static int vin_device_construct_v20(struct gk20a *g,
|
||||
pvin_device_v20->super.super.pmudatainit =
|
||||
vin_device_init_pmudata_v20;
|
||||
|
||||
pvin_device_v20->data.cal_type = ptmpvin_device_v20->data.cal_type;
|
||||
pvin_device_v20->data.vin_cal.cal_v20.offset = ptmpvin_device_v20->data.vin_cal.cal_v20.offset;
|
||||
pvin_device_v20->data.vin_cal.cal_v20.gain = ptmpvin_device_v20->data.vin_cal.cal_v20.gain;
|
||||
|
||||
@@ -537,6 +539,7 @@ static int vin_device_init_pmudata_v20(struct gk20a *g,
|
||||
perf_pmu_data = (struct nv_pmu_clk_clk_vin_device_v20_boardobj_set *)
|
||||
ppmudata;
|
||||
|
||||
perf_pmu_data->data.cal_type = pvin_dev_v20->data.cal_type;
|
||||
perf_pmu_data->data.vin_cal.cal_v20.offset = pvin_dev_v20->data.vin_cal.cal_v20.offset;
|
||||
perf_pmu_data->data.vin_cal.cal_v20.gain = pvin_dev_v20->data.vin_cal.cal_v20.gain;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user