xref: /openbmc/linux/drivers/gpu/drm/udl/udl_proto.h (revision 9869e40d)
1ff76e82cSThomas Zimmermann /* SPDX-License-Identifier: GPL-2.0-only */
2ff76e82cSThomas Zimmermann 
3ff76e82cSThomas Zimmermann #ifndef UDL_PROTO_H
4ff76e82cSThomas Zimmermann #define UDL_PROTO_H
5ff76e82cSThomas Zimmermann 
6ff76e82cSThomas Zimmermann #define UDL_COLORDEPTH_16BPP		0
7ff76e82cSThomas Zimmermann 
8*9869e40dSThomas Zimmermann /* Display-mode settings */
9*9869e40dSThomas Zimmermann #define UDL_REG_XDISPLAYSTART		0x01
10*9869e40dSThomas Zimmermann #define UDL_REG_XDISPLAYEND		0x03
11*9869e40dSThomas Zimmermann #define UDL_REG_YDISPLAYSTART		0x05
12*9869e40dSThomas Zimmermann #define UDL_REG_YDISPLAYEND		0x07
13*9869e40dSThomas Zimmermann #define UDL_REG_XENDCOUNT		0x09
14*9869e40dSThomas Zimmermann #define UDL_REG_HSYNCSTART		0x0b
15*9869e40dSThomas Zimmermann #define UDL_REG_HSYNCEND		0x0d
16*9869e40dSThomas Zimmermann #define UDL_REG_HPIXELS			0x0f
17*9869e40dSThomas Zimmermann #define UDL_REG_YENDCOUNT		0x11
18*9869e40dSThomas Zimmermann #define UDL_REG_VSYNCSTART		0x13
19*9869e40dSThomas Zimmermann #define UDL_REG_VSYNCEND		0x15
20*9869e40dSThomas Zimmermann #define UDL_REG_VPIXELS			0x17
21*9869e40dSThomas Zimmermann #define UDL_REG_PIXELCLOCK5KHZ		0x1b
22*9869e40dSThomas Zimmermann 
23ff76e82cSThomas Zimmermann /* On/Off for driving the DisplayLink framebuffer to the display */
24ff76e82cSThomas Zimmermann #define UDL_REG_BLANKMODE		0x1f
25ff76e82cSThomas Zimmermann #define UDL_BLANKMODE_ON		0x00 /* hsync and vsync on, visible */
26ff76e82cSThomas Zimmermann #define UDL_BLANKMODE_BLANKED		0x01 /* hsync and vsync on, blanked */
27ff76e82cSThomas Zimmermann #define UDL_BLANKMODE_VSYNC_OFF		0x03 /* vsync off, blanked */
28ff76e82cSThomas Zimmermann #define UDL_BLANKMODE_HSYNC_OFF		0x05 /* hsync off, blanked */
29ff76e82cSThomas Zimmermann #define UDL_BLANKMODE_POWERDOWN		0x07 /* powered off; requires modeset */
30ff76e82cSThomas Zimmermann 
31ff76e82cSThomas Zimmermann #endif
32