Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * MIPI CSI-2 Data Types
0004  *
0005  * Copyright (C) 2022 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
0006  */
0007 
0008 #ifndef _MEDIA_MIPI_CSI2_H
0009 #define _MEDIA_MIPI_CSI2_H
0010 
0011 /* Short packet data types */
0012 #define MIPI_CSI2_DT_FS         0x00
0013 #define MIPI_CSI2_DT_FE         0x01
0014 #define MIPI_CSI2_DT_LS         0x02
0015 #define MIPI_CSI2_DT_LE         0x03
0016 #define MIPI_CSI2_DT_GENERIC_SHORT(n)   (0x08 + (n))    /* 0..7 */
0017 
0018 /* Long packet data types */
0019 #define MIPI_CSI2_DT_NULL       0x10
0020 #define MIPI_CSI2_DT_BLANKING       0x11
0021 #define MIPI_CSI2_DT_EMBEDDED_8B    0x12
0022 #define MIPI_CSI2_DT_YUV420_8B      0x18
0023 #define MIPI_CSI2_DT_YUV420_10B     0x19
0024 #define MIPI_CSI2_DT_YUV420_8B_LEGACY   0x1a
0025 #define MIPI_CSI2_DT_YUV420_8B_CS   0x1c
0026 #define MIPI_CSI2_DT_YUV420_10B_CS  0x1d
0027 #define MIPI_CSI2_DT_YUV422_8B      0x1e
0028 #define MIPI_CSI2_DT_YUV422_10B     0x1f
0029 #define MIPI_CSI2_DT_RGB444     0x20
0030 #define MIPI_CSI2_DT_RGB555     0x21
0031 #define MIPI_CSI2_DT_RGB565     0x22
0032 #define MIPI_CSI2_DT_RGB666     0x23
0033 #define MIPI_CSI2_DT_RGB888     0x24
0034 #define MIPI_CSI2_DT_RAW28      0x26
0035 #define MIPI_CSI2_DT_RAW24      0x27
0036 #define MIPI_CSI2_DT_RAW6       0x28
0037 #define MIPI_CSI2_DT_RAW7       0x29
0038 #define MIPI_CSI2_DT_RAW8       0x2a
0039 #define MIPI_CSI2_DT_RAW10      0x2b
0040 #define MIPI_CSI2_DT_RAW12      0x2c
0041 #define MIPI_CSI2_DT_RAW14      0x2d
0042 #define MIPI_CSI2_DT_RAW16      0x2e
0043 #define MIPI_CSI2_DT_RAW20      0x2f
0044 #define MIPI_CSI2_DT_USER_DEFINED(n)    (0x30 + (n))    /* 0..7 */
0045 
0046 #endif /* _MEDIA_MIPI_CSI2_H */