aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dc.h
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-11-04 15:47:13 -0500
committerThierry Reding <thierry.reding@avionic-design.de>2013-02-22 02:21:12 -0500
commitf34bc78741815d0ad07298a42101a1ee2e2bcdd2 (patch)
tree135f6561469b6536ed8d66caca13583fcb17e665 /drivers/gpu/drm/tegra/dc.h
parent894752bb576a26d3343cf8c674b73899f948da68 (diff)
drm/tegra: Add plane support
Add support for the B and C planes which support RGB and YUV pixel formats and can be used as overlays or hardware cursor. Currently 32-bit XRGB as well as UYVY, YUV420 and YUV422 pixel formats are advertised. Other formats should be easy to add but these are the most common ones and should cover the majority of use-cases. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.h')
-rw-r--r--drivers/gpu/drm/tegra/dc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h
index 99977b5d5c36..e2fa328861ca 100644
--- a/drivers/gpu/drm/tegra/dc.h
+++ b/drivers/gpu/drm/tegra/dc.h
@@ -290,8 +290,18 @@
290#define DC_DISP_SD_HW_K_VALUES 0x4dd 290#define DC_DISP_SD_HW_K_VALUES 0x4dd
291#define DC_DISP_SD_MAN_K_VALUES 0x4de 291#define DC_DISP_SD_MAN_K_VALUES 0x4de
292 292
293#define DC_WIN_CSC_YOF 0x611
294#define DC_WIN_CSC_KYRGB 0x612
295#define DC_WIN_CSC_KUR 0x613
296#define DC_WIN_CSC_KVR 0x614
297#define DC_WIN_CSC_KUG 0x615
298#define DC_WIN_CSC_KVG 0x616
299#define DC_WIN_CSC_KUB 0x617
300#define DC_WIN_CSC_KVB 0x618
301
293#define DC_WIN_WIN_OPTIONS 0x700 302#define DC_WIN_WIN_OPTIONS 0x700
294#define COLOR_EXPAND (1 << 6) 303#define COLOR_EXPAND (1 << 6)
304#define CSC_ENABLE (1 << 18)
295#define WIN_ENABLE (1 << 30) 305#define WIN_ENABLE (1 << 30)
296 306
297#define DC_WIN_BYTE_SWAP 0x701 307#define DC_WIN_BYTE_SWAP 0x701
@@ -359,7 +369,7 @@
359#define DC_WIN_BLEND_1WIN 0x710 369#define DC_WIN_BLEND_1WIN 0x710
360#define DC_WIN_BLEND_2WIN_X 0x711 370#define DC_WIN_BLEND_2WIN_X 0x711
361#define DC_WIN_BLEND_2WIN_Y 0x712 371#define DC_WIN_BLEND_2WIN_Y 0x712
362#define DC_WIN_BLEND32WIN_XY 0x713 372#define DC_WIN_BLEND_3WIN_XY 0x713
363 373
364#define DC_WIN_HP_FETCH_CONTROL 0x714 374#define DC_WIN_HP_FETCH_CONTROL 0x714
365 375