summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-04-24 12:12:02 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-24 07:55:54 -0400
commitc1f549e5b27e0b86e3ab8e14f47b13aa9997a1d8 (patch)
tree76ae920b54fff7d09ee8bcf69dd7780f4a0f0ade /drivers/gpu/nvgpu/gk20a
parent0cca34641d3dedc973cd6080e953df885da5b53c (diff)
gpu: nvgpu: I2C port for INA3221 in platform data
PG419 board had been reworked to swap I2C_B and I2C_C (in order to solve PL issues). As a result, on this board we now use a different I2C port than on PG418. Remove support for non-reworked boards: VBIOS version must be at least .56 Add I2C port in platform data. Bug 1914023 Change-Id: Ia7940eaa823bb4d21f662491ba1de7c8490ce9f0 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1467930 (cherry picked from commit cda5fefb456c0edc75c99dedf67a3020424967c1) Reviewed-on: http://git-master/r/1485191 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/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index 4208816f..452b868d 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -229,9 +229,10 @@ struct gk20a_platform {
229 */ 229 */
230 bool hardcode_sw_threshold; 230 bool hardcode_sw_threshold;
231 231
232 /* i2c device index and address for INA3221 */ 232 /* i2c device index, port and address for INA3221 */
233 u32 ina3221_dcb_index; 233 u32 ina3221_dcb_index;
234 u32 ina3221_i2c_address; 234 u32 ina3221_i2c_address;
235 u32 ina3221_i2c_port;
235}; 236};
236 237
237static inline struct gk20a_platform *gk20a_get_platform( 238static inline struct gk20a_platform *gk20a_get_platform(