Rev 3764 | Rev 6104 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3764 | Rev 5078 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | * Authors: Alex Deucher |
22 | * Authors: Alex Deucher |
23 | */ |
23 | */ |
24 | #ifndef __EVERGREEN_REG_H__ |
24 | #ifndef __EVERGREEN_REG_H__ |
25 | #define __EVERGREEN_REG_H__ |
25 | #define __EVERGREEN_REG_H__ |
Line -... | Line 26... | ||
- | 26 | ||
- | 27 | /* trinity */ |
|
- | 28 | #define TN_SMC_IND_INDEX_0 0x200 |
|
- | 29 | #define TN_SMC_IND_DATA_0 0x204 |
|
26 | 30 | ||
- | 31 | /* evergreen */ |
|
- | 32 | #define EVERGREEN_PIF_PHY0_INDEX 0x8 |
|
- | 33 | #define EVERGREEN_PIF_PHY0_DATA 0xc |
|
- | 34 | #define EVERGREEN_PIF_PHY1_INDEX 0x10 |
|
- | 35 | #define EVERGREEN_PIF_PHY1_DATA 0x14 |
|
- | 36 | #define EVERGREEN_MM_INDEX_HI 0x18 |
|
27 | /* evergreen */ |
37 | |
28 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS 0x310 |
38 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS 0x310 |
29 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH 0x324 |
39 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH 0x324 |
30 | #define EVERGREEN_D3VGA_CONTROL 0x3e0 |
40 | #define EVERGREEN_D3VGA_CONTROL 0x3e0 |
31 | #define EVERGREEN_D4VGA_CONTROL 0x3e4 |
41 | #define EVERGREEN_D4VGA_CONTROL 0x3e4 |
Line 38... | Line 48... | ||
38 | 48 | ||
39 | #define EVERGREEN_AUDIO_PLL1_MUL 0x5b0 |
49 | #define EVERGREEN_AUDIO_PLL1_MUL 0x5b0 |
40 | #define EVERGREEN_AUDIO_PLL1_DIV 0x5b4 |
50 | #define EVERGREEN_AUDIO_PLL1_DIV 0x5b4 |
Line -... | Line 51... | ||
- | 51 | #define EVERGREEN_AUDIO_PLL1_UNK 0x5bc |
|
- | 52 | ||
- | 53 | #define EVERGREEN_CG_IND_ADDR 0x8f8 |
|
41 | #define EVERGREEN_AUDIO_PLL1_UNK 0x5bc |
54 | #define EVERGREEN_CG_IND_DATA 0x8fc |
42 | 55 | ||
Line 43... | Line 56... | ||
43 | #define EVERGREEN_AUDIO_ENABLE 0x5e78 |
56 | #define EVERGREEN_AUDIO_ENABLE 0x5e78 |
44 | #define EVERGREEN_AUDIO_VENDOR_ID 0x5ec0 |
57 | #define EVERGREEN_AUDIO_VENDOR_ID 0x5ec0 |
Line 101... | Line 114... | ||
101 | # define EVERGREEN_GRPH_ARRAY_MODE(x) (((x) & 0x7) << 20) |
114 | # define EVERGREEN_GRPH_ARRAY_MODE(x) (((x) & 0x7) << 20) |
102 | # define EVERGREEN_GRPH_ARRAY_LINEAR_GENERAL 0 |
115 | # define EVERGREEN_GRPH_ARRAY_LINEAR_GENERAL 0 |
103 | # define EVERGREEN_GRPH_ARRAY_LINEAR_ALIGNED 1 |
116 | # define EVERGREEN_GRPH_ARRAY_LINEAR_ALIGNED 1 |
104 | # define EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1 2 |
117 | # define EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1 2 |
105 | # define EVERGREEN_GRPH_ARRAY_2D_TILED_THIN1 4 |
118 | # define EVERGREEN_GRPH_ARRAY_2D_TILED_THIN1 4 |
- | 119 | #define EVERGREEN_GRPH_LUT_10BIT_BYPASS_CONTROL 0x6808 |
|
- | 120 | # define EVERGREEN_LUT_10BIT_BYPASS_EN (1 << 8) |
|
106 | #define EVERGREEN_GRPH_SWAP_CONTROL 0x680c |
121 | #define EVERGREEN_GRPH_SWAP_CONTROL 0x680c |
107 | # define EVERGREEN_GRPH_ENDIAN_SWAP(x) (((x) & 0x3) << 0) |
122 | # define EVERGREEN_GRPH_ENDIAN_SWAP(x) (((x) & 0x3) << 0) |
108 | # define EVERGREEN_GRPH_ENDIAN_NONE 0 |
123 | # define EVERGREEN_GRPH_ENDIAN_NONE 0 |
109 | # define EVERGREEN_GRPH_ENDIAN_8IN16 1 |
124 | # define EVERGREEN_GRPH_ENDIAN_8IN16 1 |
110 | # define EVERGREEN_GRPH_ENDIAN_8IN32 2 |
125 | # define EVERGREEN_GRPH_ENDIAN_8IN32 2 |
Line 222... | Line 237... | ||
222 | # define EVERGREEN_CRTC_BLANK_DATA_EN (1 << 8) |
237 | # define EVERGREEN_CRTC_BLANK_DATA_EN (1 << 8) |
223 | #define EVERGREEN_CRTC_STATUS 0x6e8c |
238 | #define EVERGREEN_CRTC_STATUS 0x6e8c |
224 | # define EVERGREEN_CRTC_V_BLANK (1 << 0) |
239 | # define EVERGREEN_CRTC_V_BLANK (1 << 0) |
225 | #define EVERGREEN_CRTC_STATUS_POSITION 0x6e90 |
240 | #define EVERGREEN_CRTC_STATUS_POSITION 0x6e90 |
226 | #define EVERGREEN_CRTC_STATUS_HV_COUNT 0x6ea0 |
241 | #define EVERGREEN_CRTC_STATUS_HV_COUNT 0x6ea0 |
227 | #define EVERGREEN_MASTER_UPDATE_MODE 0x6ef8 |
- | |
228 | #define EVERGREEN_CRTC_UPDATE_LOCK 0x6ed4 |
242 | #define EVERGREEN_CRTC_UPDATE_LOCK 0x6ed4 |
229 | #define EVERGREEN_MASTER_UPDATE_LOCK 0x6ef4 |
243 | #define EVERGREEN_MASTER_UPDATE_LOCK 0x6ef4 |
230 | #define EVERGREEN_MASTER_UPDATE_MODE 0x6ef8 |
244 | #define EVERGREEN_MASTER_UPDATE_MODE 0x6ef8 |
Line 231... | Line 245... | ||
231 | 245 |