From: Alex Deucher Date: Fri, 16 Nov 2018 18:22:38 +0000 (-0500) Subject: drm/amdgpu/psp: use define rather than magic number for mode1 reset X-Git-Tag: v5.15~7216^2~13^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccce29abfe036967a0fa0f291acb9ea4f5595486;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu/psp: use define rather than magic number for mode1 reset Use the define rather than hardcoded value. Acked-by: Christian König Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c index 64c267f..7efb823 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v3_1.c @@ -590,7 +590,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp) } /*send the mode 1 reset command*/ - WREG32(offset, 0x70000); + WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST); mdelay(1000);