aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.h')
-rw-r--r--drivers/gpu/drm/tegra/dc.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h
index c94101494826..78c5feff95d2 100644
--- a/drivers/gpu/drm/tegra/dc.h
+++ b/drivers/gpu/drm/tegra/dc.h
@@ -67,10 +67,12 @@
67#define WIN_A_ACT_REQ (1 << 1) 67#define WIN_A_ACT_REQ (1 << 1)
68#define WIN_B_ACT_REQ (1 << 2) 68#define WIN_B_ACT_REQ (1 << 2)
69#define WIN_C_ACT_REQ (1 << 3) 69#define WIN_C_ACT_REQ (1 << 3)
70#define CURSOR_ACT_REQ (1 << 7)
70#define GENERAL_UPDATE (1 << 8) 71#define GENERAL_UPDATE (1 << 8)
71#define WIN_A_UPDATE (1 << 9) 72#define WIN_A_UPDATE (1 << 9)
72#define WIN_B_UPDATE (1 << 10) 73#define WIN_B_UPDATE (1 << 10)
73#define WIN_C_UPDATE (1 << 11) 74#define WIN_C_UPDATE (1 << 11)
75#define CURSOR_UPDATE (1 << 15)
74#define NC_HOST_TRIG (1 << 24) 76#define NC_HOST_TRIG (1 << 24)
75 77
76#define DC_CMD_DISPLAY_WINDOW_HEADER 0x042 78#define DC_CMD_DISPLAY_WINDOW_HEADER 0x042
@@ -116,9 +118,10 @@
116#define DC_DISP_DISP_SIGNAL_OPTIONS1 0x401 118#define DC_DISP_DISP_SIGNAL_OPTIONS1 0x401
117 119
118#define DC_DISP_DISP_WIN_OPTIONS 0x402 120#define DC_DISP_DISP_WIN_OPTIONS 0x402
119#define HDMI_ENABLE (1 << 30) 121#define HDMI_ENABLE (1 << 30)
120#define DSI_ENABLE (1 << 29) 122#define DSI_ENABLE (1 << 29)
121#define SOR_ENABLE (1 << 25) 123#define SOR_ENABLE (1 << 25)
124#define CURSOR_ENABLE (1 << 16)
122 125
123#define DC_DISP_DISP_MEM_HIGH_PRIORITY 0x403 126#define DC_DISP_DISP_MEM_HIGH_PRIORITY 0x403
124#define CURSOR_THRESHOLD(x) (((x) & 0x03) << 24) 127#define CURSOR_THRESHOLD(x) (((x) & 0x03) << 24)
@@ -266,6 +269,14 @@
266#define DC_DISP_CURSOR_BACKGROUND 0x43d 269#define DC_DISP_CURSOR_BACKGROUND 0x43d
267 270
268#define DC_DISP_CURSOR_START_ADDR 0x43e 271#define DC_DISP_CURSOR_START_ADDR 0x43e
272#define CURSOR_CLIP_DISPLAY (0 << 28)
273#define CURSOR_CLIP_WIN_A (1 << 28)
274#define CURSOR_CLIP_WIN_B (2 << 28)
275#define CURSOR_CLIP_WIN_C (3 << 28)
276#define CURSOR_SIZE_32x32 (0 << 24)
277#define CURSOR_SIZE_64x64 (1 << 24)
278#define CURSOR_SIZE_128x128 (2 << 24)
279#define CURSOR_SIZE_256x256 (3 << 24)
269#define DC_DISP_CURSOR_START_ADDR_NS 0x43f 280#define DC_DISP_CURSOR_START_ADDR_NS 0x43f
270 281
271#define DC_DISP_CURSOR_POSITION 0x440 282#define DC_DISP_CURSOR_POSITION 0x440
@@ -302,6 +313,19 @@
302#define INTERLACE_START (1 << 1) 313#define INTERLACE_START (1 << 1)
303#define INTERLACE_ENABLE (1 << 0) 314#define INTERLACE_ENABLE (1 << 0)
304 315
316#define DC_DISP_CURSOR_START_ADDR_HI 0x4ec
317#define DC_DISP_BLEND_CURSOR_CONTROL 0x4f1
318#define CURSOR_MODE_LEGACY (0 << 24)
319#define CURSOR_MODE_NORMAL (1 << 24)
320#define CURSOR_DST_BLEND_ZERO (0 << 16)
321#define CURSOR_DST_BLEND_K1 (1 << 16)
322#define CURSOR_DST_BLEND_NEG_K1_TIMES_SRC (2 << 16)
323#define CURSOR_DST_BLEND_MASK (3 << 16)
324#define CURSOR_SRC_BLEND_K1 (0 << 8)
325#define CURSOR_SRC_BLEND_K1_TIMES_SRC (1 << 8)
326#define CURSOR_SRC_BLEND_MASK (3 << 8)
327#define CURSOR_ALPHA 0xff
328
305#define DC_WIN_CSC_YOF 0x611 329#define DC_WIN_CSC_YOF 0x611
306#define DC_WIN_CSC_KYRGB 0x612 330#define DC_WIN_CSC_KYRGB 0x612
307#define DC_WIN_CSC_KUR 0x613 331#define DC_WIN_CSC_KUR 0x613
@@ -312,7 +336,8 @@
312#define DC_WIN_CSC_KVB 0x618 336#define DC_WIN_CSC_KVB 0x618
313 337
314#define DC_WIN_WIN_OPTIONS 0x700 338#define DC_WIN_WIN_OPTIONS 0x700
315#define INVERT_V (1 << 2) 339#define H_DIRECTION (1 << 0)
340#define V_DIRECTION (1 << 2)
316#define COLOR_EXPAND (1 << 6) 341#define COLOR_EXPAND (1 << 6)
317#define CSC_ENABLE (1 << 18) 342#define CSC_ENABLE (1 << 18)
318#define WIN_ENABLE (1 << 30) 343#define WIN_ENABLE (1 << 30)