diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-04-08 06:41:32 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-04-09 10:31:35 -0400 |
commit | 23d33ba32bad60a17ca26f631d1d2cf6b12662e5 (patch) | |
tree | 86681373847e4831d6c14fb998e259c97493a880 /drivers/gpu/drm/radeon/evergreend.h | |
parent | 7062ab67d4c6568ec423da39321423721b925fdc (diff) |
drm/radeon: add set_uvd_clocks callback for ON/LN/TN (v4)
v2: write clk registers only once!
v3: update cg scratch register properly
v4: add TN support
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreend.h')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreend.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreend.h b/drivers/gpu/drm/radeon/evergreend.h index c5d873e525c9..b6491a300c5c 100644 --- a/drivers/gpu/drm/radeon/evergreend.h +++ b/drivers/gpu/drm/radeon/evergreend.h | |||
@@ -53,6 +53,16 @@ | |||
53 | #define RCU_IND_INDEX 0x100 | 53 | #define RCU_IND_INDEX 0x100 |
54 | #define RCU_IND_DATA 0x104 | 54 | #define RCU_IND_DATA 0x104 |
55 | 55 | ||
56 | /* fusion uvd clocks */ | ||
57 | #define CG_DCLK_CNTL 0x610 | ||
58 | # define DCLK_DIVIDER_MASK 0x7f | ||
59 | # define DCLK_DIR_CNTL_EN (1 << 8) | ||
60 | #define CG_DCLK_STATUS 0x614 | ||
61 | # define DCLK_STATUS (1 << 0) | ||
62 | #define CG_VCLK_CNTL 0x618 | ||
63 | #define CG_VCLK_STATUS 0x61c | ||
64 | #define CG_SCRATCH1 0x820 | ||
65 | |||
56 | #define GRBM_GFX_INDEX 0x802C | 66 | #define GRBM_GFX_INDEX 0x802C |
57 | #define INSTANCE_INDEX(x) ((x) << 0) | 67 | #define INSTANCE_INDEX(x) ((x) << 0) |
58 | #define SE_INDEX(x) ((x) << 16) | 68 | #define SE_INDEX(x) ((x) << 16) |