Subversion Repositories Kolibri OS

Rev

Rev 1963 | Rev 3764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1963 Rev 2997
Line 33... Line 33...
33
#define EVERGREEN_D6VGA_CONTROL                         0x3ec
33
#define EVERGREEN_D6VGA_CONTROL                         0x3ec
Line 34... Line 34...
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)
-
 
38
 
-
 
39
#define EVERGREEN_AUDIO_PLL1_MUL			0x5b0
-
 
40
#define EVERGREEN_AUDIO_PLL1_DIV			0x5b4
-
 
41
#define EVERGREEN_AUDIO_PLL1_UNK			0x5bc
-
 
42
 
-
 
43
#define EVERGREEN_AUDIO_ENABLE				0x5e78
-
 
44
#define EVERGREEN_AUDIO_VENDOR_ID			0x5ec0
37
#       define EVERGREEN_PxPLL_SS_EN                    (1 << 12)
45
 
38
/* GRPH blocks at 0x6800, 0x7400, 0x10000, 0x10c00, 0x11800, 0x12400 */
46
/* GRPH blocks at 0x6800, 0x7400, 0x10000, 0x10c00, 0x11800, 0x12400 */
39
#define EVERGREEN_GRPH_ENABLE                           0x6800
47
#define EVERGREEN_GRPH_ENABLE                           0x6800
40
#define EVERGREEN_GRPH_CONTROL                          0x6804
48
#define EVERGREEN_GRPH_CONTROL                          0x6804
41
#       define EVERGREEN_GRPH_DEPTH(x)                  (((x) & 0x3) << 0)
49
#       define EVERGREEN_GRPH_DEPTH(x)                  (((x) & 0x3) << 0)
42
#       define EVERGREEN_GRPH_DEPTH_8BPP                0
50
#       define EVERGREEN_GRPH_DEPTH_8BPP                0
43
#       define EVERGREEN_GRPH_DEPTH_16BPP               1
51
#       define EVERGREEN_GRPH_DEPTH_16BPP               1
-
 
52
#       define EVERGREEN_GRPH_DEPTH_32BPP               2
-
 
53
#       define EVERGREEN_GRPH_NUM_BANKS(x)              (((x) & 0x3) << 2)
-
 
54
#       define EVERGREEN_ADDR_SURF_2_BANK               0
-
 
55
#       define EVERGREEN_ADDR_SURF_4_BANK               1
-
 
56
#       define EVERGREEN_ADDR_SURF_8_BANK               2
-
 
57
#       define EVERGREEN_ADDR_SURF_16_BANK              3
-
 
58
#       define EVERGREEN_GRPH_Z(x)                      (((x) & 0x3) << 4)
-
 
59
#       define EVERGREEN_GRPH_BANK_WIDTH(x)             (((x) & 0x3) << 6)
-
 
60
#       define EVERGREEN_ADDR_SURF_BANK_WIDTH_1         0
-
 
61
#       define EVERGREEN_ADDR_SURF_BANK_WIDTH_2         1
-
 
62
#       define EVERGREEN_ADDR_SURF_BANK_WIDTH_4         2
44
#       define EVERGREEN_GRPH_DEPTH_32BPP               2
63
#       define EVERGREEN_ADDR_SURF_BANK_WIDTH_8         3
45
#       define EVERGREEN_GRPH_FORMAT(x)                 (((x) & 0x7) << 8)
64
#       define EVERGREEN_GRPH_FORMAT(x)                 (((x) & 0x7) << 8)
46
/* 8 BPP */
65
/* 8 BPP */
47
#       define EVERGREEN_GRPH_FORMAT_INDEXED            0
66
#       define EVERGREEN_GRPH_FORMAT_INDEXED            0
48
/* 16 BPP */
67
/* 16 BPP */
Line 59... Line 78...
59
#       define EVERGREEN_GRPH_FORMAT_8B_ARGB2101010     3
78
#       define EVERGREEN_GRPH_FORMAT_8B_ARGB2101010     3
60
#       define EVERGREEN_GRPH_FORMAT_BGRA1010102        4
79
#       define EVERGREEN_GRPH_FORMAT_BGRA1010102        4
61
#       define EVERGREEN_GRPH_FORMAT_8B_BGRA1010102     5
80
#       define EVERGREEN_GRPH_FORMAT_8B_BGRA1010102     5
62
#       define EVERGREEN_GRPH_FORMAT_RGB111110          6
81
#       define EVERGREEN_GRPH_FORMAT_RGB111110          6
63
#       define EVERGREEN_GRPH_FORMAT_BGR101111          7
82
#       define EVERGREEN_GRPH_FORMAT_BGR101111          7
-
 
83
#       define EVERGREEN_GRPH_BANK_HEIGHT(x)            (((x) & 0x3) << 11)
-
 
84
#       define EVERGREEN_ADDR_SURF_BANK_HEIGHT_1        0
-
 
85
#       define EVERGREEN_ADDR_SURF_BANK_HEIGHT_2        1
-
 
86
#       define EVERGREEN_ADDR_SURF_BANK_HEIGHT_4        2
-
 
87
#       define EVERGREEN_ADDR_SURF_BANK_HEIGHT_8        3
-
 
88
#       define EVERGREEN_GRPH_TILE_SPLIT(x)             (((x) & 0x7) << 13)
-
 
89
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_64B       0
-
 
90
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_128B      1
-
 
91
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_256B      2
-
 
92
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_512B      3
-
 
93
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_1KB       4
-
 
94
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_2KB       5
-
 
95
#       define EVERGREEN_ADDR_SURF_TILE_SPLIT_4KB       6
-
 
96
#       define EVERGREEN_GRPH_MACRO_TILE_ASPECT(x)      (((x) & 0x3) << 18)
-
 
97
#       define EVERGREEN_ADDR_SURF_MACRO_TILE_ASPECT_1  0
-
 
98
#       define EVERGREEN_ADDR_SURF_MACRO_TILE_ASPECT_2  1
-
 
99
#       define EVERGREEN_ADDR_SURF_MACRO_TILE_ASPECT_4  2
-
 
100
#       define EVERGREEN_ADDR_SURF_MACRO_TILE_ASPECT_8  3
64
#       define EVERGREEN_GRPH_ARRAY_MODE(x)             (((x) & 0x7) << 20)
101
#       define EVERGREEN_GRPH_ARRAY_MODE(x)             (((x) & 0x7) << 20)
65
#       define EVERGREEN_GRPH_ARRAY_LINEAR_GENERAL      0
102
#       define EVERGREEN_GRPH_ARRAY_LINEAR_GENERAL      0
66
#       define EVERGREEN_GRPH_ARRAY_LINEAR_ALIGNED      1
103
#       define EVERGREEN_GRPH_ARRAY_LINEAR_ALIGNED      1
67
#       define EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1      2
104
#       define EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1      2
68
#       define EVERGREEN_GRPH_ARRAY_2D_TILED_THIN1      4
105
#       define EVERGREEN_GRPH_ARRAY_2D_TILED_THIN1      4
Line 179... Line 216...
179
/* CRTC blocks at 0x6df0, 0x79f0, 0x105f0, 0x111f0, 0x11df0, 0x129f0 */
216
/* CRTC blocks at 0x6df0, 0x79f0, 0x105f0, 0x111f0, 0x11df0, 0x129f0 */
180
#define EVERGREEN_CRTC_V_BLANK_START_END                0x6e34
217
#define EVERGREEN_CRTC_V_BLANK_START_END                0x6e34
181
#define EVERGREEN_CRTC_CONTROL                          0x6e70
218
#define EVERGREEN_CRTC_CONTROL                          0x6e70
182
#       define EVERGREEN_CRTC_MASTER_EN                 (1 << 0)
219
#       define EVERGREEN_CRTC_MASTER_EN                 (1 << 0)
183
#       define EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE (1 << 24)
220
#       define EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE (1 << 24)
-
 
221
#define EVERGREEN_CRTC_BLANK_CONTROL                    0x6e74
-
 
222
#       define EVERGREEN_CRTC_BLANK_DATA_EN             (1 << 8)
184
#define EVERGREEN_CRTC_STATUS                           0x6e8c
223
#define EVERGREEN_CRTC_STATUS                           0x6e8c
-
 
224
#       define EVERGREEN_CRTC_V_BLANK                   (1 << 0)
185
#define EVERGREEN_CRTC_STATUS_POSITION                  0x6e90
225
#define EVERGREEN_CRTC_STATUS_POSITION                  0x6e90
186
#define EVERGREEN_MASTER_UPDATE_MODE                    0x6ef8
226
#define EVERGREEN_MASTER_UPDATE_MODE                    0x6ef8
187
#define EVERGREEN_CRTC_UPDATE_LOCK                      0x6ed4
227
#define EVERGREEN_CRTC_UPDATE_LOCK                      0x6ed4
Line 188... Line 228...
188
 
228
 
189
#define EVERGREEN_DC_GPIO_HPD_MASK                      0x64b0
229
#define EVERGREEN_DC_GPIO_HPD_MASK                      0x64b0
190
#define EVERGREEN_DC_GPIO_HPD_A                         0x64b4
230
#define EVERGREEN_DC_GPIO_HPD_A                         0x64b4
191
#define EVERGREEN_DC_GPIO_HPD_EN                        0x64b8
231
#define EVERGREEN_DC_GPIO_HPD_EN                        0x64b8
Line -... Line 232...
-
 
232
#define EVERGREEN_DC_GPIO_HPD_Y                         0x64bc
-
 
233
 
-
 
234
/* HDMI blocks at 0x7030, 0x7c30, 0x10830, 0x11430, 0x12030, 0x12c30 */
192
#define EVERGREEN_DC_GPIO_HPD_Y                         0x64bc
235
#define EVERGREEN_HDMI_BASE				0x7030