diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-10 17:09:36 -0400 |
---|---|---|
committer | Bo Yan <byan@nvidia.com> | 2018-08-20 14:00:59 -0400 |
commit | 227c6f7b7a499dd58e0db6859736cfe586ef0897 (patch) | |
tree | d354f8422647021693aefefa5124d865c29ecd32 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 9e69e0cf978b53706f55ffb873e3966b4bb3a7a8 (diff) |
gpu: nvgpu: Move fuse HAL to common
Move implementation of fuse HAL to common/fuse. Also implements new
fuse query functions for FBIO, FBP, TPC floorsweeping and security
fuses.
JIRA NVGPU-957
Change-Id: I55e256a4f1b59d50a721d4942907f70dc57467c4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797177
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 1fe0cb5d..febd7e0c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1256,6 +1256,20 @@ struct gpu_ops { | |||
1256 | int (*check_priv_security)(struct gk20a *g); | 1256 | int (*check_priv_security)(struct gk20a *g); |
1257 | bool (*is_opt_ecc_enable)(struct gk20a *g); | 1257 | bool (*is_opt_ecc_enable)(struct gk20a *g); |
1258 | bool (*is_opt_feature_override_disable)(struct gk20a *g); | 1258 | bool (*is_opt_feature_override_disable)(struct gk20a *g); |
1259 | u32 (*fuse_status_opt_fbio)(struct gk20a *g); | ||
1260 | u32 (*fuse_status_opt_fbp)(struct gk20a *g); | ||
1261 | u32 (*fuse_status_opt_rop_l2_fbp)(struct gk20a *g, u32 fbp); | ||
1262 | u32 (*fuse_status_opt_tpc_gpc)(struct gk20a *g, u32 gpc); | ||
1263 | void (*fuse_ctrl_opt_tpc_gpc)(struct gk20a *g, u32 gpc, u32 val); | ||
1264 | u32 (*fuse_opt_sec_debug_en)(struct gk20a *g); | ||
1265 | u32 (*fuse_opt_priv_sec_en)(struct gk20a *g); | ||
1266 | u32 (*read_vin_cal_fuse_rev)(struct gk20a *g); | ||
1267 | u32 (*read_vin_cal_slope_intercept_fuse)(struct gk20a *g, | ||
1268 | u32 vin_id, u32 *slope, | ||
1269 | u32 *intercept); | ||
1270 | u32 (*read_vin_cal_gain_offset_fuse)(struct gk20a *g, | ||
1271 | u32 vin_id, s8 *gain, | ||
1272 | s8 *offset); | ||
1259 | } fuse; | 1273 | } fuse; |
1260 | struct { | 1274 | struct { |
1261 | int (*init)(struct gk20a *g); | 1275 | int (*init)(struct gk20a *g); |