drm/amdgpu/vega20: add CLK base offset
Subsystems (2)
PATCH 1/1 drm/amdgpu/vega20: add CLK base offset
In case we need to access CLK registers.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c +1 -0
@@ -49,6 +49,7 @@ int vega20_reg_base_init(struct amdgpu_device *adev) adev->reg_offset[SMUIO_HWIP ][i] = (uint32_t *)(&(SMUIO_BASE .instance[i])); adev->reg_offset[NBIF_HWIP ][i] = (uint32_t *)(&(NBIO_BASE .instance[i])); adev->reg_offset[THM_HWIP ][i] = (uint32_t *)(&(THM_BASE .instance[i])); + adev->reg_offset[CLK_HWIP ][i] = (uint32_t *)(&(CLK_BASE .instance[i])); }return 0 ; }
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Wentland, Harry
Acked-by Harry WentlandQuoted 3 lines · Alex Deucher
In case we need to access CLK registers.
Signed-off-by Alex Deucher <[email protected]>
Acked-by Harry Wentland <[email protected]>
Harry
Quoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c +0
-0
drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c int vega20_reg_base_init(struct amdgpu_device *adev) · line 55
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c +1
-0@@ -49,6 +49,7 @@ int vega20_reg_base_init(struct amdgpu_device *adev) adev->reg_offset[SMUIO_HWIP ][i] = (uint32_t *)(&(SMUIO_BASE .instance[i])); adev->reg_offset[NBIF_HWIP ][i] = (uint32_t *)(&(NBIO_BASE .instance[i])); adev->reg_offset[THM_HWIP ][i] = (uint32_t *)(&(THM_BASE .instance[i])); + adev->reg_offset[CLK_HWIP ][i] = (uint32_t *)(&(CLK_BASE .instance[i])); }return 0 ; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx