diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-09-28 18:59:11 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 20:38:08 +0200 |
commit | 2285b91cd2d995acc8c62028c7bd4ae5f939b1ea (patch) | |
tree | 5763ecfc4ee5f89c0711e89e31b3a6e3328d6f38 /drivers/gpu/drm/amd/amdgpu/cikd.h | |
parent | drm/amd/amdgpu: For virtual display, enable multi crtcs. (v3) (diff) | |
download | linux-2285b91cd2d995acc8c62028c7bd4ae5f939b1ea.tar.xz linux-2285b91cd2d995acc8c62028c7bd4ae5f939b1ea.zip |
drm/amdgpu/dce8: simplify hpd code
Use an address offset like other dce code.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cikd.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cikd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cikd.h b/drivers/gpu/drm/amd/amdgpu/cikd.h index 8659852aea9e..6cbd913fd12e 100644 --- a/drivers/gpu/drm/amd/amdgpu/cikd.h +++ b/drivers/gpu/drm/amd/amdgpu/cikd.h @@ -43,6 +43,14 @@ #define CRTC4_REGISTER_OFFSET (0x477c - 0x1b7c) #define CRTC5_REGISTER_OFFSET (0x4a7c - 0x1b7c) +/* hpd instance offsets */ +#define HPD0_REGISTER_OFFSET (0x1807 - 0x1807) +#define HPD1_REGISTER_OFFSET (0x180a - 0x1807) +#define HPD2_REGISTER_OFFSET (0x180d - 0x1807) +#define HPD3_REGISTER_OFFSET (0x1810 - 0x1807) +#define HPD4_REGISTER_OFFSET (0x1813 - 0x1807) +#define HPD5_REGISTER_OFFSET (0x1816 - 0x1807) + #define BONAIRE_GB_ADDR_CONFIG_GOLDEN 0x12010001 #define HAWAII_GB_ADDR_CONFIG_GOLDEN 0x12011003 |