mipi-csi2.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * MIPI CSI-2 Data Types
  4. *
  5. * Copyright (C) 2022 Laurent Pinchart <[email protected]>
  6. */
  7. #ifndef _MEDIA_MIPI_CSI2_H
  8. #define _MEDIA_MIPI_CSI2_H
  9. /* Short packet data types */
  10. #define MIPI_CSI2_DT_FS 0x00
  11. #define MIPI_CSI2_DT_FE 0x01
  12. #define MIPI_CSI2_DT_LS 0x02
  13. #define MIPI_CSI2_DT_LE 0x03
  14. #define MIPI_CSI2_DT_GENERIC_SHORT(n) (0x08 + (n)) /* 0..7 */
  15. /* Long packet data types */
  16. #define MIPI_CSI2_DT_NULL 0x10
  17. #define MIPI_CSI2_DT_BLANKING 0x11
  18. #define MIPI_CSI2_DT_EMBEDDED_8B 0x12
  19. #define MIPI_CSI2_DT_YUV420_8B 0x18
  20. #define MIPI_CSI2_DT_YUV420_10B 0x19
  21. #define MIPI_CSI2_DT_YUV420_8B_LEGACY 0x1a
  22. #define MIPI_CSI2_DT_YUV420_8B_CS 0x1c
  23. #define MIPI_CSI2_DT_YUV420_10B_CS 0x1d
  24. #define MIPI_CSI2_DT_YUV422_8B 0x1e
  25. #define MIPI_CSI2_DT_YUV422_10B 0x1f
  26. #define MIPI_CSI2_DT_RGB444 0x20
  27. #define MIPI_CSI2_DT_RGB555 0x21
  28. #define MIPI_CSI2_DT_RGB565 0x22
  29. #define MIPI_CSI2_DT_RGB666 0x23
  30. #define MIPI_CSI2_DT_RGB888 0x24
  31. #define MIPI_CSI2_DT_RAW28 0x26
  32. #define MIPI_CSI2_DT_RAW24 0x27
  33. #define MIPI_CSI2_DT_RAW6 0x28
  34. #define MIPI_CSI2_DT_RAW7 0x29
  35. #define MIPI_CSI2_DT_RAW8 0x2a
  36. #define MIPI_CSI2_DT_RAW10 0x2b
  37. #define MIPI_CSI2_DT_RAW12 0x2c
  38. #define MIPI_CSI2_DT_RAW14 0x2d
  39. #define MIPI_CSI2_DT_RAW16 0x2e
  40. #define MIPI_CSI2_DT_RAW20 0x2f
  41. #define MIPI_CSI2_DT_USER_DEFINED(n) (0x30 + (n)) /* 0..7 */
  42. #endif /* _MEDIA_MIPI_CSI2_H */