Rev 1430 | Rev 3764 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1430 | Rev 1963 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * Copyright 2010 Advanced Micro Devices, Inc. |
2 | * Copyright 2010 Advanced Micro Devices, Inc. |
3 | * |
3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a |
4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), |
5 | * copy of this software and associated documentation files (the "Software"), |
6 | * to deal in the Software without restriction, including without limitation |
6 | * to deal in the Software without restriction, including without limitation |
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
8 | * and/or sell copies of the Software, and to permit persons to whom the |
8 | * and/or sell copies of the Software, and to permit persons to whom the |
9 | * Software is furnished to do so, subject to the following conditions: |
9 | * Software is furnished to do so, subject to the following conditions: |
10 | * |
10 | * |
11 | * The above copyright notice and this permission notice shall be included in |
11 | * The above copyright notice and this permission notice shall be included in |
12 | * all copies or substantial portions of the Software. |
12 | * all copies or substantial portions of the Software. |
13 | * |
13 | * |
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
20 | * OTHER DEALINGS IN THE SOFTWARE. |
20 | * OTHER DEALINGS IN THE SOFTWARE. |
21 | * |
21 | * |
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__ |
26 | 26 | ||
27 | /* evergreen */ |
27 | /* evergreen */ |
28 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS 0x310 |
28 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS 0x310 |
29 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH 0x324 |
29 | #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH 0x324 |
30 | #define EVERGREEN_D3VGA_CONTROL 0x3e0 |
30 | #define EVERGREEN_D3VGA_CONTROL 0x3e0 |
31 | #define EVERGREEN_D4VGA_CONTROL 0x3e4 |
31 | #define EVERGREEN_D4VGA_CONTROL 0x3e4 |
32 | #define EVERGREEN_D5VGA_CONTROL 0x3e8 |
32 | #define EVERGREEN_D5VGA_CONTROL 0x3e8 |
33 | #define EVERGREEN_D6VGA_CONTROL 0x3ec |
33 | #define EVERGREEN_D6VGA_CONTROL 0x3ec |
34 | 34 | ||
35 | #define EVERGREEN_P1PLL_SS_CNTL 0x414 |
35 | #define EVERGREEN_P1PLL_SS_CNTL 0x414 |
36 | #define EVERGREEN_P2PLL_SS_CNTL 0x454 |
36 | #define EVERGREEN_P2PLL_SS_CNTL 0x454 |
37 | # define EVERGREEN_PxPLL_SS_EN (1 << 12) |
37 | # define EVERGREEN_PxPLL_SS_EN (1 << 12) |
38 | /* GRPH blocks at 0x6800, 0x7400, 0x10000, 0x10c00, 0x11800, 0x12400 */ |
38 | /* GRPH blocks at 0x6800, 0x7400, 0x10000, 0x10c00, 0x11800, 0x12400 */ |
39 | #define EVERGREEN_GRPH_ENABLE 0x6800 |
39 | #define EVERGREEN_GRPH_ENABLE 0x6800 |
40 | #define EVERGREEN_GRPH_CONTROL 0x6804 |
40 | #define EVERGREEN_GRPH_CONTROL 0x6804 |
41 | # define EVERGREEN_GRPH_DEPTH(x) (((x) & 0x3) << 0) |
41 | # define EVERGREEN_GRPH_DEPTH(x) (((x) & 0x3) << 0) |
42 | # define EVERGREEN_GRPH_DEPTH_8BPP 0 |
42 | # define EVERGREEN_GRPH_DEPTH_8BPP 0 |
43 | # define EVERGREEN_GRPH_DEPTH_16BPP 1 |
43 | # define EVERGREEN_GRPH_DEPTH_16BPP 1 |
44 | # define EVERGREEN_GRPH_DEPTH_32BPP 2 |
44 | # define EVERGREEN_GRPH_DEPTH_32BPP 2 |
45 | # define EVERGREEN_GRPH_FORMAT(x) (((x) & 0x7) << 8) |
45 | # define EVERGREEN_GRPH_FORMAT(x) (((x) & 0x7) << 8) |
46 | /* 8 BPP */ |
46 | /* 8 BPP */ |
47 | # define EVERGREEN_GRPH_FORMAT_INDEXED 0 |
47 | # define EVERGREEN_GRPH_FORMAT_INDEXED 0 |
48 | /* 16 BPP */ |
48 | /* 16 BPP */ |
49 | # define EVERGREEN_GRPH_FORMAT_ARGB1555 0 |
49 | # define EVERGREEN_GRPH_FORMAT_ARGB1555 0 |
50 | # define EVERGREEN_GRPH_FORMAT_ARGB565 1 |
50 | # define EVERGREEN_GRPH_FORMAT_ARGB565 1 |
51 | # define EVERGREEN_GRPH_FORMAT_ARGB4444 2 |
51 | # define EVERGREEN_GRPH_FORMAT_ARGB4444 2 |
52 | # define EVERGREEN_GRPH_FORMAT_AI88 3 |
52 | # define EVERGREEN_GRPH_FORMAT_AI88 3 |
53 | # define EVERGREEN_GRPH_FORMAT_MONO16 4 |
53 | # define EVERGREEN_GRPH_FORMAT_MONO16 4 |
54 | # define EVERGREEN_GRPH_FORMAT_BGRA5551 5 |
54 | # define EVERGREEN_GRPH_FORMAT_BGRA5551 5 |
55 | /* 32 BPP */ |
55 | /* 32 BPP */ |
56 | # define EVERGREEN_GRPH_FORMAT_ARGB8888 0 |
56 | # define EVERGREEN_GRPH_FORMAT_ARGB8888 0 |
57 | # define EVERGREEN_GRPH_FORMAT_ARGB2101010 1 |
57 | # define EVERGREEN_GRPH_FORMAT_ARGB2101010 1 |
58 | # define EVERGREEN_GRPH_FORMAT_32BPP_DIG 2 |
58 | # define EVERGREEN_GRPH_FORMAT_32BPP_DIG 2 |
59 | # define EVERGREEN_GRPH_FORMAT_8B_ARGB2101010 3 |
59 | # define EVERGREEN_GRPH_FORMAT_8B_ARGB2101010 3 |
60 | # define EVERGREEN_GRPH_FORMAT_BGRA1010102 4 |
60 | # define EVERGREEN_GRPH_FORMAT_BGRA1010102 4 |
61 | # define EVERGREEN_GRPH_FORMAT_8B_BGRA1010102 5 |
61 | # define EVERGREEN_GRPH_FORMAT_8B_BGRA1010102 5 |
62 | # define EVERGREEN_GRPH_FORMAT_RGB111110 6 |
62 | # define EVERGREEN_GRPH_FORMAT_RGB111110 6 |
63 | # define EVERGREEN_GRPH_FORMAT_BGR101111 7 |
63 | # define EVERGREEN_GRPH_FORMAT_BGR101111 7 |
- | 64 | # define EVERGREEN_GRPH_ARRAY_MODE(x) (((x) & 0x7) << 20) |
|
- | 65 | # define EVERGREEN_GRPH_ARRAY_LINEAR_GENERAL 0 |
|
- | 66 | # define EVERGREEN_GRPH_ARRAY_LINEAR_ALIGNED 1 |
|
- | 67 | # define EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1 2 |
|
- | 68 | # define EVERGREEN_GRPH_ARRAY_2D_TILED_THIN1 4 |
|
64 | #define EVERGREEN_GRPH_SWAP_CONTROL 0x680c |
69 | #define EVERGREEN_GRPH_SWAP_CONTROL 0x680c |
65 | # define EVERGREEN_GRPH_ENDIAN_SWAP(x) (((x) & 0x3) << 0) |
70 | # define EVERGREEN_GRPH_ENDIAN_SWAP(x) (((x) & 0x3) << 0) |
66 | # define EVERGREEN_GRPH_ENDIAN_NONE 0 |
71 | # define EVERGREEN_GRPH_ENDIAN_NONE 0 |
67 | # define EVERGREEN_GRPH_ENDIAN_8IN16 1 |
72 | # define EVERGREEN_GRPH_ENDIAN_8IN16 1 |
68 | # define EVERGREEN_GRPH_ENDIAN_8IN32 2 |
73 | # define EVERGREEN_GRPH_ENDIAN_8IN32 2 |
69 | # define EVERGREEN_GRPH_ENDIAN_8IN64 3 |
74 | # define EVERGREEN_GRPH_ENDIAN_8IN64 3 |
70 | # define EVERGREEN_GRPH_RED_CROSSBAR(x) (((x) & 0x3) << 4) |
75 | # define EVERGREEN_GRPH_RED_CROSSBAR(x) (((x) & 0x3) << 4) |
71 | # define EVERGREEN_GRPH_RED_SEL_R 0 |
76 | # define EVERGREEN_GRPH_RED_SEL_R 0 |
72 | # define EVERGREEN_GRPH_RED_SEL_G 1 |
77 | # define EVERGREEN_GRPH_RED_SEL_G 1 |
73 | # define EVERGREEN_GRPH_RED_SEL_B 2 |
78 | # define EVERGREEN_GRPH_RED_SEL_B 2 |
74 | # define EVERGREEN_GRPH_RED_SEL_A 3 |
79 | # define EVERGREEN_GRPH_RED_SEL_A 3 |
75 | # define EVERGREEN_GRPH_GREEN_CROSSBAR(x) (((x) & 0x3) << 6) |
80 | # define EVERGREEN_GRPH_GREEN_CROSSBAR(x) (((x) & 0x3) << 6) |
76 | # define EVERGREEN_GRPH_GREEN_SEL_G 0 |
81 | # define EVERGREEN_GRPH_GREEN_SEL_G 0 |
77 | # define EVERGREEN_GRPH_GREEN_SEL_B 1 |
82 | # define EVERGREEN_GRPH_GREEN_SEL_B 1 |
78 | # define EVERGREEN_GRPH_GREEN_SEL_A 2 |
83 | # define EVERGREEN_GRPH_GREEN_SEL_A 2 |
79 | # define EVERGREEN_GRPH_GREEN_SEL_R 3 |
84 | # define EVERGREEN_GRPH_GREEN_SEL_R 3 |
80 | # define EVERGREEN_GRPH_BLUE_CROSSBAR(x) (((x) & 0x3) << 8) |
85 | # define EVERGREEN_GRPH_BLUE_CROSSBAR(x) (((x) & 0x3) << 8) |
81 | # define EVERGREEN_GRPH_BLUE_SEL_B 0 |
86 | # define EVERGREEN_GRPH_BLUE_SEL_B 0 |
82 | # define EVERGREEN_GRPH_BLUE_SEL_A 1 |
87 | # define EVERGREEN_GRPH_BLUE_SEL_A 1 |
83 | # define EVERGREEN_GRPH_BLUE_SEL_R 2 |
88 | # define EVERGREEN_GRPH_BLUE_SEL_R 2 |
84 | # define EVERGREEN_GRPH_BLUE_SEL_G 3 |
89 | # define EVERGREEN_GRPH_BLUE_SEL_G 3 |
85 | # define EVERGREEN_GRPH_ALPHA_CROSSBAR(x) (((x) & 0x3) << 10) |
90 | # define EVERGREEN_GRPH_ALPHA_CROSSBAR(x) (((x) & 0x3) << 10) |
86 | # define EVERGREEN_GRPH_ALPHA_SEL_A 0 |
91 | # define EVERGREEN_GRPH_ALPHA_SEL_A 0 |
87 | # define EVERGREEN_GRPH_ALPHA_SEL_R 1 |
92 | # define EVERGREEN_GRPH_ALPHA_SEL_R 1 |
88 | # define EVERGREEN_GRPH_ALPHA_SEL_G 2 |
93 | # define EVERGREEN_GRPH_ALPHA_SEL_G 2 |
89 | # define EVERGREEN_GRPH_ALPHA_SEL_B 3 |
94 | # define EVERGREEN_GRPH_ALPHA_SEL_B 3 |
90 | #define EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS 0x6810 |
95 | #define EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS 0x6810 |
91 | #define EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS 0x6814 |
96 | #define EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS 0x6814 |
92 | # define EVERGREEN_GRPH_DFQ_ENABLE (1 << 0) |
97 | # define EVERGREEN_GRPH_DFQ_ENABLE (1 << 0) |
93 | # define EVERGREEN_GRPH_SURFACE_ADDRESS_MASK 0xffffff00 |
98 | # define EVERGREEN_GRPH_SURFACE_ADDRESS_MASK 0xffffff00 |
94 | #define EVERGREEN_GRPH_PITCH 0x6818 |
99 | #define EVERGREEN_GRPH_PITCH 0x6818 |
95 | #define EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH 0x681c |
100 | #define EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH 0x681c |
96 | #define EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH 0x6820 |
101 | #define EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH 0x6820 |
97 | #define EVERGREEN_GRPH_SURFACE_OFFSET_X 0x6824 |
102 | #define EVERGREEN_GRPH_SURFACE_OFFSET_X 0x6824 |
98 | #define EVERGREEN_GRPH_SURFACE_OFFSET_Y 0x6828 |
103 | #define EVERGREEN_GRPH_SURFACE_OFFSET_Y 0x6828 |
99 | #define EVERGREEN_GRPH_X_START 0x682c |
104 | #define EVERGREEN_GRPH_X_START 0x682c |
100 | #define EVERGREEN_GRPH_Y_START 0x6830 |
105 | #define EVERGREEN_GRPH_Y_START 0x6830 |
101 | #define EVERGREEN_GRPH_X_END 0x6834 |
106 | #define EVERGREEN_GRPH_X_END 0x6834 |
102 | #define EVERGREEN_GRPH_Y_END 0x6838 |
107 | #define EVERGREEN_GRPH_Y_END 0x6838 |
- | 108 | #define EVERGREEN_GRPH_UPDATE 0x6844 |
|
- | 109 | # define EVERGREEN_GRPH_SURFACE_UPDATE_PENDING (1 << 2) |
|
- | 110 | # define EVERGREEN_GRPH_UPDATE_LOCK (1 << 16) |
|
- | 111 | #define EVERGREEN_GRPH_FLIP_CONTROL 0x6848 |
|
- | 112 | # define EVERGREEN_GRPH_SURFACE_UPDATE_H_RETRACE_EN (1 << 0) |
|
103 | 113 | ||
104 | /* CUR blocks at 0x6998, 0x7598, 0x10198, 0x10d98, 0x11998, 0x12598 */ |
114 | /* CUR blocks at 0x6998, 0x7598, 0x10198, 0x10d98, 0x11998, 0x12598 */ |
105 | #define EVERGREEN_CUR_CONTROL 0x6998 |
115 | #define EVERGREEN_CUR_CONTROL 0x6998 |
106 | # define EVERGREEN_CURSOR_EN (1 << 0) |
116 | # define EVERGREEN_CURSOR_EN (1 << 0) |
107 | # define EVERGREEN_CURSOR_MODE(x) (((x) & 0x3) << 8) |
117 | # define EVERGREEN_CURSOR_MODE(x) (((x) & 0x3) << 8) |
108 | # define EVERGREEN_CURSOR_MONO 0 |
118 | # define EVERGREEN_CURSOR_MONO 0 |
109 | # define EVERGREEN_CURSOR_24_1 1 |
119 | # define EVERGREEN_CURSOR_24_1 1 |
110 | # define EVERGREEN_CURSOR_24_8_PRE_MULT 2 |
120 | # define EVERGREEN_CURSOR_24_8_PRE_MULT 2 |
111 | # define EVERGREEN_CURSOR_24_8_UNPRE_MULT 3 |
121 | # define EVERGREEN_CURSOR_24_8_UNPRE_MULT 3 |
112 | # define EVERGREEN_CURSOR_2X_MAGNIFY (1 << 16) |
122 | # define EVERGREEN_CURSOR_2X_MAGNIFY (1 << 16) |
113 | # define EVERGREEN_CURSOR_FORCE_MC_ON (1 << 20) |
123 | # define EVERGREEN_CURSOR_FORCE_MC_ON (1 << 20) |
114 | # define EVERGREEN_CURSOR_URGENT_CONTROL(x) (((x) & 0x7) << 24) |
124 | # define EVERGREEN_CURSOR_URGENT_CONTROL(x) (((x) & 0x7) << 24) |
115 | # define EVERGREEN_CURSOR_URGENT_ALWAYS 0 |
125 | # define EVERGREEN_CURSOR_URGENT_ALWAYS 0 |
116 | # define EVERGREEN_CURSOR_URGENT_1_8 1 |
126 | # define EVERGREEN_CURSOR_URGENT_1_8 1 |
117 | # define EVERGREEN_CURSOR_URGENT_1_4 2 |
127 | # define EVERGREEN_CURSOR_URGENT_1_4 2 |
118 | # define EVERGREEN_CURSOR_URGENT_3_8 3 |
128 | # define EVERGREEN_CURSOR_URGENT_3_8 3 |
119 | # define EVERGREEN_CURSOR_URGENT_1_2 4 |
129 | # define EVERGREEN_CURSOR_URGENT_1_2 4 |
120 | #define EVERGREEN_CUR_SURFACE_ADDRESS 0x699c |
130 | #define EVERGREEN_CUR_SURFACE_ADDRESS 0x699c |
121 | # define EVERGREEN_CUR_SURFACE_ADDRESS_MASK 0xfffff000 |
131 | # define EVERGREEN_CUR_SURFACE_ADDRESS_MASK 0xfffff000 |
122 | #define EVERGREEN_CUR_SIZE 0x69a0 |
132 | #define EVERGREEN_CUR_SIZE 0x69a0 |
123 | #define EVERGREEN_CUR_SURFACE_ADDRESS_HIGH 0x69a4 |
133 | #define EVERGREEN_CUR_SURFACE_ADDRESS_HIGH 0x69a4 |
124 | #define EVERGREEN_CUR_POSITION 0x69a8 |
134 | #define EVERGREEN_CUR_POSITION 0x69a8 |
125 | #define EVERGREEN_CUR_HOT_SPOT 0x69ac |
135 | #define EVERGREEN_CUR_HOT_SPOT 0x69ac |
126 | #define EVERGREEN_CUR_COLOR1 0x69b0 |
136 | #define EVERGREEN_CUR_COLOR1 0x69b0 |
127 | #define EVERGREEN_CUR_COLOR2 0x69b4 |
137 | #define EVERGREEN_CUR_COLOR2 0x69b4 |
128 | #define EVERGREEN_CUR_UPDATE 0x69b8 |
138 | #define EVERGREEN_CUR_UPDATE 0x69b8 |
129 | # define EVERGREEN_CURSOR_UPDATE_PENDING (1 << 0) |
139 | # define EVERGREEN_CURSOR_UPDATE_PENDING (1 << 0) |
130 | # define EVERGREEN_CURSOR_UPDATE_TAKEN (1 << 1) |
140 | # define EVERGREEN_CURSOR_UPDATE_TAKEN (1 << 1) |
131 | # define EVERGREEN_CURSOR_UPDATE_LOCK (1 << 16) |
141 | # define EVERGREEN_CURSOR_UPDATE_LOCK (1 << 16) |
132 | # define EVERGREEN_CURSOR_DISABLE_MULTIPLE_UPDATE (1 << 24) |
142 | # define EVERGREEN_CURSOR_DISABLE_MULTIPLE_UPDATE (1 << 24) |
133 | 143 | ||
134 | /* LUT blocks at 0x69e0, 0x75e0, 0x101e0, 0x10de0, 0x119e0, 0x125e0 */ |
144 | /* LUT blocks at 0x69e0, 0x75e0, 0x101e0, 0x10de0, 0x119e0, 0x125e0 */ |
135 | #define EVERGREEN_DC_LUT_RW_MODE 0x69e0 |
145 | #define EVERGREEN_DC_LUT_RW_MODE 0x69e0 |
136 | #define EVERGREEN_DC_LUT_RW_INDEX 0x69e4 |
146 | #define EVERGREEN_DC_LUT_RW_INDEX 0x69e4 |
137 | #define EVERGREEN_DC_LUT_SEQ_COLOR 0x69e8 |
147 | #define EVERGREEN_DC_LUT_SEQ_COLOR 0x69e8 |
138 | #define EVERGREEN_DC_LUT_PWL_DATA 0x69ec |
148 | #define EVERGREEN_DC_LUT_PWL_DATA 0x69ec |
139 | #define EVERGREEN_DC_LUT_30_COLOR 0x69f0 |
149 | #define EVERGREEN_DC_LUT_30_COLOR 0x69f0 |
140 | #define EVERGREEN_DC_LUT_VGA_ACCESS_ENABLE 0x69f4 |
150 | #define EVERGREEN_DC_LUT_VGA_ACCESS_ENABLE 0x69f4 |
141 | #define EVERGREEN_DC_LUT_WRITE_EN_MASK 0x69f8 |
151 | #define EVERGREEN_DC_LUT_WRITE_EN_MASK 0x69f8 |
142 | #define EVERGREEN_DC_LUT_AUTOFILL 0x69fc |
152 | #define EVERGREEN_DC_LUT_AUTOFILL 0x69fc |
143 | #define EVERGREEN_DC_LUT_CONTROL 0x6a00 |
153 | #define EVERGREEN_DC_LUT_CONTROL 0x6a00 |
144 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE 0x6a04 |
154 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE 0x6a04 |
145 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN 0x6a08 |
155 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN 0x6a08 |
146 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_RED 0x6a0c |
156 | #define EVERGREEN_DC_LUT_BLACK_OFFSET_RED 0x6a0c |
147 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE 0x6a10 |
157 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE 0x6a10 |
148 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN 0x6a14 |
158 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN 0x6a14 |
149 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_RED 0x6a18 |
159 | #define EVERGREEN_DC_LUT_WHITE_OFFSET_RED 0x6a18 |
150 | 160 | ||
151 | #define EVERGREEN_DATA_FORMAT 0x6b00 |
161 | #define EVERGREEN_DATA_FORMAT 0x6b00 |
152 | # define EVERGREEN_INTERLEAVE_EN (1 << 0) |
162 | # define EVERGREEN_INTERLEAVE_EN (1 << 0) |
153 | #define EVERGREEN_DESKTOP_HEIGHT 0x6b04 |
163 | #define EVERGREEN_DESKTOP_HEIGHT 0x6b04 |
- | 164 | #define EVERGREEN_VLINE_START_END 0x6b08 |
|
- | 165 | #define EVERGREEN_VLINE_STATUS 0x6bb8 |
|
- | 166 | # define EVERGREEN_VLINE_STAT (1 << 12) |
|
154 | 167 | ||
155 | #define EVERGREEN_VIEWPORT_START 0x6d70 |
168 | #define EVERGREEN_VIEWPORT_START 0x6d70 |
156 | #define EVERGREEN_VIEWPORT_SIZE 0x6d74 |
169 | #define EVERGREEN_VIEWPORT_SIZE 0x6d74 |
157 | 170 | ||
158 | /* display controller offsets used for crtc/cur/lut/grph/viewport/etc. */ |
171 | /* display controller offsets used for crtc/cur/lut/grph/viewport/etc. */ |
159 | #define EVERGREEN_CRTC0_REGISTER_OFFSET (0x6df0 - 0x6df0) |
172 | #define EVERGREEN_CRTC0_REGISTER_OFFSET (0x6df0 - 0x6df0) |
160 | #define EVERGREEN_CRTC1_REGISTER_OFFSET (0x79f0 - 0x6df0) |
173 | #define EVERGREEN_CRTC1_REGISTER_OFFSET (0x79f0 - 0x6df0) |
161 | #define EVERGREEN_CRTC2_REGISTER_OFFSET (0x105f0 - 0x6df0) |
174 | #define EVERGREEN_CRTC2_REGISTER_OFFSET (0x105f0 - 0x6df0) |
162 | #define EVERGREEN_CRTC3_REGISTER_OFFSET (0x111f0 - 0x6df0) |
175 | #define EVERGREEN_CRTC3_REGISTER_OFFSET (0x111f0 - 0x6df0) |
163 | #define EVERGREEN_CRTC4_REGISTER_OFFSET (0x11df0 - 0x6df0) |
176 | #define EVERGREEN_CRTC4_REGISTER_OFFSET (0x11df0 - 0x6df0) |
164 | #define EVERGREEN_CRTC5_REGISTER_OFFSET (0x129f0 - 0x6df0) |
177 | #define EVERGREEN_CRTC5_REGISTER_OFFSET (0x129f0 - 0x6df0) |
165 | 178 | ||
166 | /* CRTC blocks at 0x6df0, 0x79f0, 0x105f0, 0x111f0, 0x11df0, 0x129f0 */ |
179 | /* CRTC blocks at 0x6df0, 0x79f0, 0x105f0, 0x111f0, 0x11df0, 0x129f0 */ |
- | 180 | #define EVERGREEN_CRTC_V_BLANK_START_END 0x6e34 |
|
167 | #define EVERGREEN_CRTC_CONTROL 0x6e70 |
181 | #define EVERGREEN_CRTC_CONTROL 0x6e70 |
168 | # define EVERGREEN_CRTC_MASTER_EN (1 << 0) |
182 | # define EVERGREEN_CRTC_MASTER_EN (1 << 0) |
- | 183 | # define EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE (1 << 24) |
|
- | 184 | #define EVERGREEN_CRTC_STATUS 0x6e8c |
|
- | 185 | #define EVERGREEN_CRTC_STATUS_POSITION 0x6e90 |
|
- | 186 | #define EVERGREEN_MASTER_UPDATE_MODE 0x6ef8 |
|
169 | #define EVERGREEN_CRTC_UPDATE_LOCK 0x6ed4 |
187 | #define EVERGREEN_CRTC_UPDATE_LOCK 0x6ed4 |
170 | 188 | ||
171 | #define EVERGREEN_DC_GPIO_HPD_MASK 0x64b0 |
189 | #define EVERGREEN_DC_GPIO_HPD_MASK 0x64b0 |
172 | #define EVERGREEN_DC_GPIO_HPD_A 0x64b4 |
190 | #define EVERGREEN_DC_GPIO_HPD_A 0x64b4 |
173 | #define EVERGREEN_DC_GPIO_HPD_EN 0x64b8 |
191 | #define EVERGREEN_DC_GPIO_HPD_EN 0x64b8 |
174 | #define EVERGREEN_DC_GPIO_HPD_Y 0x64bc |
192 | #define EVERGREEN_DC_GPIO_HPD_Y 0x64bc |
175 | 193 | ||
176 | #endif><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><> |
194 | #endif><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><> |