From 94226c9c1ed67be2dd146648b0460ef7346a2900 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Mon, 24 Apr 2017 08:41:05 -0700 Subject: 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 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 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/pmgr/pmgrpmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/pmgr/pmgrpmu.c') 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) i2c_desc_table.devices[idx].dcb_index = idx; i2c_desc_table.devices[idx].i2c_address = platform->ina3221_i2c_address; i2c_desc_table.devices[idx].i2c_flags = 0xC2F; - i2c_desc_table.devices[idx].i2c_port = 0x2; + i2c_desc_table.devices[idx].i2c_port = platform->ina3221_i2c_port; /* Pass the table down the PMU as an object */ status = pmgr_pmu_set_object( -- cgit v1.2.2