|
42 | 42 | * 1.2 formally includes both eDP and DPI definitions. |
43 | 43 | */ |
44 | 44 |
|
| 45 | +/* MSA (Main Stream Attribute) MISC bits (as MISC1<<8|MISC0) */ |
| 46 | +#define DP_MSA_MISC_SYNC_CLOCK (1 << 0) |
| 47 | +#define DP_MSA_MISC_INTERLACE_VTOTAL_EVEN (1 << 8) |
| 48 | +#define DP_MSA_MISC_STEREO_NO_3D (0 << 9) |
| 49 | +#define DP_MSA_MISC_STEREO_PROG_RIGHT_EYE (1 << 9) |
| 50 | +#define DP_MSA_MISC_STEREO_PROG_LEFT_EYE (3 << 9) |
| 51 | +/* bits per component for non-RAW */ |
| 52 | +#define DP_MSA_MISC_6_BPC (0 << 5) |
| 53 | +#define DP_MSA_MISC_8_BPC (1 << 5) |
| 54 | +#define DP_MSA_MISC_10_BPC (2 << 5) |
| 55 | +#define DP_MSA_MISC_12_BPC (3 << 5) |
| 56 | +#define DP_MSA_MISC_16_BPC (4 << 5) |
| 57 | +/* bits per component for RAW */ |
| 58 | +#define DP_MSA_MISC_RAW_6_BPC (1 << 5) |
| 59 | +#define DP_MSA_MISC_RAW_7_BPC (2 << 5) |
| 60 | +#define DP_MSA_MISC_RAW_8_BPC (3 << 5) |
| 61 | +#define DP_MSA_MISC_RAW_10_BPC (4 << 5) |
| 62 | +#define DP_MSA_MISC_RAW_12_BPC (5 << 5) |
| 63 | +#define DP_MSA_MISC_RAW_14_BPC (6 << 5) |
| 64 | +#define DP_MSA_MISC_RAW_16_BPC (7 << 5) |
| 65 | +/* pixel encoding/colorimetry format */ |
| 66 | +#define _DP_MSA_MISC_COLOR(misc1_7, misc0_21, misc0_3, misc0_4) \ |
| 67 | + ((misc1_7) << 15 | (misc0_4) << 4 | (misc0_3) << 3 | ((misc0_21) << 1)) |
| 68 | +#define DP_MSA_MISC_COLOR_RGB _DP_MSA_MISC_COLOR(0, 0, 0, 0) |
| 69 | +#define DP_MSA_MISC_COLOR_CEA_RGB _DP_MSA_MISC_COLOR(0, 0, 1, 0) |
| 70 | +#define DP_MSA_MISC_COLOR_RGB_WIDE_FIXED _DP_MSA_MISC_COLOR(0, 3, 0, 0) |
| 71 | +#define DP_MSA_MISC_COLOR_RGB_WIDE_FLOAT _DP_MSA_MISC_COLOR(0, 3, 0, 1) |
| 72 | +#define DP_MSA_MISC_COLOR_Y_ONLY _DP_MSA_MISC_COLOR(1, 0, 0, 0) |
| 73 | +#define DP_MSA_MISC_COLOR_RAW _DP_MSA_MISC_COLOR(1, 1, 0, 0) |
| 74 | +#define DP_MSA_MISC_COLOR_YCBCR_422_BT601 _DP_MSA_MISC_COLOR(0, 1, 1, 0) |
| 75 | +#define DP_MSA_MISC_COLOR_YCBCR_422_BT709 _DP_MSA_MISC_COLOR(0, 1, 1, 1) |
| 76 | +#define DP_MSA_MISC_COLOR_YCBCR_444_BT601 _DP_MSA_MISC_COLOR(0, 2, 1, 0) |
| 77 | +#define DP_MSA_MISC_COLOR_YCBCR_444_BT709 _DP_MSA_MISC_COLOR(0, 2, 1, 1) |
| 78 | +#define DP_MSA_MISC_COLOR_XVYCC_422_BT601 _DP_MSA_MISC_COLOR(0, 1, 0, 0) |
| 79 | +#define DP_MSA_MISC_COLOR_XVYCC_422_BT709 _DP_MSA_MISC_COLOR(0, 1, 0, 1) |
| 80 | +#define DP_MSA_MISC_COLOR_XVYCC_444_BT601 _DP_MSA_MISC_COLOR(0, 2, 0, 0) |
| 81 | +#define DP_MSA_MISC_COLOR_XVYCC_444_BT709 _DP_MSA_MISC_COLOR(0, 2, 0, 1) |
| 82 | +#define DP_MSA_MISC_COLOR_OPRGB _DP_MSA_MISC_COLOR(0, 0, 1, 1) |
| 83 | +#define DP_MSA_MISC_COLOR_DCI_P3 _DP_MSA_MISC_COLOR(0, 3, 1, 0) |
| 84 | +#define DP_MSA_MISC_COLOR_COLOR_PROFILE _DP_MSA_MISC_COLOR(0, 3, 1, 1) |
| 85 | +#define DP_MSA_MISC_COLOR_VSC_SDP (1 << 14) |
| 86 | + |
45 | 87 | #define DP_AUX_MAX_PAYLOAD_BYTES 16 |
46 | 88 |
|
47 | 89 | #define DP_AUX_I2C_WRITE 0x0 |
|
0 commit comments