diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-23 08:31:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-15 08:43:48 -0400 |
commit | 7d16f7e52c0f8ce8604e992a617a3f98545fcf07 (patch) | |
tree | e14b73435e847ddda77b4a72466b6aae44b9ff80 /drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |
parent | eb8db3e4df159210ca9c7f834dbbc939a5c67a96 (diff) |
gpu: nvgpu: use fuse APIs from <nvgpu/fuse.h>
Remove <soc/tegra/fuse.h> includes and include
<nvgpu/fuse.h> header to remove direct dependency
on platform specific header
Use specific APIs like below to read/write fuses
nvgpu_tegra_fuse_write_bypass()
nvgpu_tegra_fuse_write_opt_gpu_tpc0_disable()
Remove old code which was compiled for kernel versions
less than 4.4 since we support only k4.4 and greater
versions now
Jira NVGPU-75
Change-Id: Iddd8e1a8da7effbce2aff217e8e25f7de04962d6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1497518
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index ceeb457a..8dfc5636 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -240,8 +240,6 @@ found_match: | |||
240 | 240 | ||
241 | /* GPCPLL NA/DVFS mode methods */ | 241 | /* GPCPLL NA/DVFS mode methods */ |
242 | 242 | ||
243 | #define FUSE_RESERVED_CALIB 0x204 | ||
244 | |||
245 | static inline int fuse_get_gpcpll_adc_rev(u32 val) | 243 | static inline int fuse_get_gpcpll_adc_rev(u32 val) |
246 | { | 244 | { |
247 | return (val >> 30) & 0x3; | 245 | return (val >> 30) & 0x3; |
@@ -264,7 +262,7 @@ static int nvgpu_fuse_calib_gpcpll_get_adc(int *slope_uv, int *intercept_uv) | |||
264 | u32 val; | 262 | u32 val; |
265 | int ret; | 263 | int ret; |
266 | 264 | ||
267 | ret = nvgpu_tegra_fuse_read(FUSE_RESERVED_CALIB, &val); | 265 | ret = nvgpu_tegra_fuse_read_reserved_calib(&val); |
268 | if (ret) | 266 | if (ret) |
269 | return ret; | 267 | return ret; |
270 | 268 | ||