sdtv-standards.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* SPDX-License-Identifier: GPL-2.0-only or X11 */
  2. /*
  3. * Copyright 2019 Pengutronix, Marco Felsch <[email protected]>
  4. */
  5. #ifndef _DT_BINDINGS_DISPLAY_SDTV_STDS_H
  6. #define _DT_BINDINGS_DISPLAY_SDTV_STDS_H
  7. /*
  8. * Attention: Keep the SDTV_STD_* bit definitions in sync with
  9. * include/uapi/linux/videodev2.h V4L2_STD_* bit definitions.
  10. */
  11. /* One bit for each standard */
  12. #define SDTV_STD_PAL_B 0x00000001
  13. #define SDTV_STD_PAL_B1 0x00000002
  14. #define SDTV_STD_PAL_G 0x00000004
  15. #define SDTV_STD_PAL_H 0x00000008
  16. #define SDTV_STD_PAL_I 0x00000010
  17. #define SDTV_STD_PAL_D 0x00000020
  18. #define SDTV_STD_PAL_D1 0x00000040
  19. #define SDTV_STD_PAL_K 0x00000080
  20. #define SDTV_STD_PAL (SDTV_STD_PAL_B | \
  21. SDTV_STD_PAL_B1 | \
  22. SDTV_STD_PAL_G | \
  23. SDTV_STD_PAL_H | \
  24. SDTV_STD_PAL_I | \
  25. SDTV_STD_PAL_D | \
  26. SDTV_STD_PAL_D1 | \
  27. SDTV_STD_PAL_K)
  28. #define SDTV_STD_PAL_M 0x00000100
  29. #define SDTV_STD_PAL_N 0x00000200
  30. #define SDTV_STD_PAL_Nc 0x00000400
  31. #define SDTV_STD_PAL_60 0x00000800
  32. #define SDTV_STD_NTSC_M 0x00001000 /* BTSC */
  33. #define SDTV_STD_NTSC_M_JP 0x00002000 /* EIA-J */
  34. #define SDTV_STD_NTSC_443 0x00004000
  35. #define SDTV_STD_NTSC_M_KR 0x00008000 /* FM A2 */
  36. #define SDTV_STD_NTSC (SDTV_STD_NTSC_M | \
  37. SDTV_STD_NTSC_M_JP | \
  38. SDTV_STD_NTSC_M_KR)
  39. #define SDTV_STD_SECAM_B 0x00010000
  40. #define SDTV_STD_SECAM_D 0x00020000
  41. #define SDTV_STD_SECAM_G 0x00040000
  42. #define SDTV_STD_SECAM_H 0x00080000
  43. #define SDTV_STD_SECAM_K 0x00100000
  44. #define SDTV_STD_SECAM_K1 0x00200000
  45. #define SDTV_STD_SECAM_L 0x00400000
  46. #define SDTV_STD_SECAM_LC 0x00800000
  47. #define SDTV_STD_SECAM (SDTV_STD_SECAM_B | \
  48. SDTV_STD_SECAM_D | \
  49. SDTV_STD_SECAM_G | \
  50. SDTV_STD_SECAM_H | \
  51. SDTV_STD_SECAM_K | \
  52. SDTV_STD_SECAM_K1 | \
  53. SDTV_STD_SECAM_L | \
  54. SDTV_STD_SECAM_LC)
  55. /* Standards for Countries with 60Hz Line frequency */
  56. #define SDTV_STD_525_60 (SDTV_STD_PAL_M | \
  57. SDTV_STD_PAL_60 | \
  58. SDTV_STD_NTSC | \
  59. SDTV_STD_NTSC_443)
  60. /* Standards for Countries with 50Hz Line frequency */
  61. #define SDTV_STD_625_50 (SDTV_STD_PAL | \
  62. SDTV_STD_PAL_N | \
  63. SDTV_STD_PAL_Nc | \
  64. SDTV_STD_SECAM)
  65. #endif /* _DT_BINDINGS_DISPLAY_SDTV_STDS_H */