diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-03-22 10:28:09 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-27 07:45:30 -0400 |
commit | 0f2eb5430d19cc49661d69571dde042650766691 (patch) | |
tree | 76263ebafdf1b375e2c1bcc6a62667d55fdd8e25 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 4f5996e23d7ea3d576c33f9b0ec5c7b590d6adca (diff) |
gpu: nvgpu: add INA3221 I2C info in platform data
Add I2C device index and address for INA3221 in platform data.
Jira EVLR-1048
Change-Id: I3791f24bd6d8ab99483ea0103313b2b671dfb445
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1327047
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 2d8c2bd7..4bdbda43 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -252,6 +252,10 @@ struct gk20a_platform { | |||
252 | * power limits | 252 | * power limits |
253 | */ | 253 | */ |
254 | bool hardcode_sw_threshold; | 254 | bool hardcode_sw_threshold; |
255 | |||
256 | /* i2c device index and address for INA3221 */ | ||
257 | u32 ina3221_dcb_index; | ||
258 | u32 ina3221_i2c_address; | ||
255 | }; | 259 | }; |
256 | 260 | ||
257 | static inline struct gk20a_platform *gk20a_get_platform( | 261 | static inline struct gk20a_platform *gk20a_get_platform( |