1 /* 2 * Copyright (c) 2015 François Tigeot 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice (including the next 12 * paragraph) shall be included in all copies or substantial portions of the 13 * Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21 * IN THE SOFTWARE. 22 */ 23 24 #ifndef __VIDEO_MIPI_DISPLAY_H__ 25 #define __VIDEO_MIPI_DISPLAY_H__ 26 27 #define MIPI_DSI_V_SYNC_START 0x01 28 #define MIPI_DSI_V_SYNC_END 0x11 29 #define MIPI_DSI_H_SYNC_START 0x21 30 #define MIPI_DSI_H_SYNC_END 0x31 31 32 #define MIPI_DSI_COLOR_MODE_OFF 0x02 33 #define MIPI_DSI_COLOR_MODE_ON 0x12 34 #define MIPI_DSI_SHUTDOWN_PERIPHERAL 0x22 35 #define MIPI_DSI_TURN_ON_PERIPHERAL 0x32 36 37 #define MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM 0x03 38 #define MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM 0x13 39 #define MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM 0x23 40 41 #define MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM 0x04 42 #define MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM 0x14 43 #define MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM 0x24 44 45 #define MIPI_DSI_DCS_SHORT_WRITE 0x05 46 #define MIPI_DSI_DCS_SHORT_WRITE_PARAM 0x15 47 48 #define MIPI_DSI_DCS_READ 0x06 49 50 #define MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE 0x37 51 52 #define MIPI_DSI_END_OF_TRANSMISSION 0x08 53 54 #define MIPI_DSI_NULL_PACKET 0x09 55 #define MIPI_DSI_BLANKING_PACKET 0x19 56 57 #define MIPI_DSI_GENERIC_LONG_WRITE 0x29 58 #define MIPI_DSI_DCS_LONG_WRITE 0x39 59 60 #define MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 0x0c 61 #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 0x1c 62 #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 0x2c 63 64 #define MIPI_DSI_PACKED_PIXEL_STREAM_30 0x0d 65 #define MIPI_DSI_PACKED_PIXEL_STREAM_36 0x1d 66 #define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12 0x3d 67 68 #define MIPI_DSI_PACKED_PIXEL_STREAM_16 0x0e 69 #define MIPI_DSI_PACKED_PIXEL_STREAM_18 0x1e 70 #define MIPI_DSI_PIXEL_STREAM_3BYTE_18 0x2e 71 #define MIPI_DSI_PACKED_PIXEL_STREAM_24 0x3e 72 73 #endif /* __VIDEO_MIPI_DISPLAY_H__ */ 74