diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-04-24 11:41:05 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 07:55:54 -0400 |
commit | 94226c9c1ed67be2dd146648b0460ef7346a2900 (patch) | |
tree | 0e68cb228b00999c67f4b583a93a8960ce52418e /drivers/gpu/nvgpu/pmgr/pmgrpmu.c | |
parent | c1f549e5b27e0b86e3ab8e14f47b13aa9997a1d8 (diff) |
gpu: nvgpu: use I2C port from platform data
PG419 board has been reworked to swap I2C_B and I2C_C
(in order to solve PL issues). As a result, we use a
different I2C port to access INA3221. This information
is now provided in platform data.
Bug 1914023
Change-Id: Icaa7bb281f48f4dfa4f29ffd411c1b4bd84aca11
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1467931
(cherry picked from commit b3ebc022588ae485c0f6e88733b264a858cd4c12)
Reviewed-on: http://git-master/r/1485192
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pmgrpmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pmgrpmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pmgrpmu.c b/drivers/gpu/nvgpu/pmgr/pmgrpmu.c index c60c4960..7445d81c 100644 --- a/drivers/gpu/nvgpu/pmgr/pmgrpmu.c +++ b/drivers/gpu/nvgpu/pmgr/pmgrpmu.c | |||
@@ -151,7 +151,7 @@ static u32 pmgr_send_i2c_device_topology_to_pmu(struct gk20a *g) | |||
151 | i2c_desc_table.devices[idx].dcb_index = idx; | 151 | i2c_desc_table.devices[idx].dcb_index = idx; |
152 | i2c_desc_table.devices[idx].i2c_address = platform->ina3221_i2c_address; | 152 | i2c_desc_table.devices[idx].i2c_address = platform->ina3221_i2c_address; |
153 | i2c_desc_table.devices[idx].i2c_flags = 0xC2F; | 153 | i2c_desc_table.devices[idx].i2c_flags = 0xC2F; |
154 | i2c_desc_table.devices[idx].i2c_port = 0x2; | 154 | i2c_desc_table.devices[idx].i2c_port = platform->ina3221_i2c_port; |
155 | 155 | ||
156 | /* Pass the table down the PMU as an object */ | 156 | /* Pass the table down the PMU as an object */ |
157 | status = pmgr_pmu_set_object( | 157 | status = pmgr_pmu_set_object( |