diff options
author | Christian König <deathsimple@vodafone.de> | 2013-04-08 06:41:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-04-09 10:31:37 -0400 |
commit | ef0e6e657cfe6e80036b5263887c6ec102c4bae9 (patch) | |
tree | 58df797a727db067ad5ec5cc86902957eb20a8a0 /drivers/gpu/drm/radeon/rv770d.h | |
parent | 2539eb02de42f2bc60f329e3adb75d41697089df (diff) |
drm/radeon: add set_uvd_clocks callback for r7xx v3
v2: avoid 64bit divide
v3: rv740 uses the evegreen upll configuration
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770d.h')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770d.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770d.h b/drivers/gpu/drm/radeon/rv770d.h index da158b541720..162b177a4947 100644 --- a/drivers/gpu/drm/radeon/rv770d.h +++ b/drivers/gpu/drm/radeon/rv770d.h | |||
@@ -38,6 +38,30 @@ | |||
38 | #define R7XX_MAX_PIPES 8 | 38 | #define R7XX_MAX_PIPES 8 |
39 | #define R7XX_MAX_PIPES_MASK 0xff | 39 | #define R7XX_MAX_PIPES_MASK 0xff |
40 | 40 | ||
41 | /* discrete uvd clocks */ | ||
42 | #define CG_UPLL_FUNC_CNTL 0x718 | ||
43 | # define UPLL_RESET_MASK 0x00000001 | ||
44 | # define UPLL_SLEEP_MASK 0x00000002 | ||
45 | # define UPLL_BYPASS_EN_MASK 0x00000004 | ||
46 | # define UPLL_CTLREQ_MASK 0x00000008 | ||
47 | # define UPLL_REF_DIV(x) ((x) << 16) | ||
48 | # define UPLL_REF_DIV_MASK 0x001F0000 | ||
49 | # define UPLL_CTLACK_MASK 0x40000000 | ||
50 | # define UPLL_CTLACK2_MASK 0x80000000 | ||
51 | #define CG_UPLL_FUNC_CNTL_2 0x71c | ||
52 | # define UPLL_SW_HILEN(x) ((x) << 0) | ||
53 | # define UPLL_SW_LOLEN(x) ((x) << 4) | ||
54 | # define UPLL_SW_HILEN2(x) ((x) << 8) | ||
55 | # define UPLL_SW_LOLEN2(x) ((x) << 12) | ||
56 | # define UPLL_SW_MASK 0x0000FFFF | ||
57 | # define VCLK_SRC_SEL(x) ((x) << 20) | ||
58 | # define VCLK_SRC_SEL_MASK 0x01F00000 | ||
59 | # define DCLK_SRC_SEL(x) ((x) << 25) | ||
60 | # define DCLK_SRC_SEL_MASK 0x3E000000 | ||
61 | #define CG_UPLL_FUNC_CNTL_3 0x720 | ||
62 | # define UPLL_FB_DIV(x) ((x) << 0) | ||
63 | # define UPLL_FB_DIV_MASK 0x01FFFFFF | ||
64 | |||
41 | /* Registers */ | 65 | /* Registers */ |
42 | #define CB_COLOR0_BASE 0x28040 | 66 | #define CB_COLOR0_BASE 0x28040 |
43 | #define CB_COLOR1_BASE 0x28044 | 67 | #define CB_COLOR1_BASE 0x28044 |