tvp5150_reg.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * tvp5150 - Texas Instruments TVP5150A/AM1 video decoder registers
  3. *
  4. * Copyright (c) 2005,2006 Mauro Carvalho Chehab (mchehab@infradead.org)
  5. * This code is placed under the terms of the GNU General Public License v2
  6. */
  7. #define TVP5150_VD_IN_SRC_SEL_1 0x00 /* Video input source selection #1 */
  8. #define TVP5150_ANAL_CHL_CTL 0x01 /* Analog channel controls */
  9. #define TVP5150_OP_MODE_CTL 0x02 /* Operation mode controls */
  10. #define TVP5150_MISC_CTL 0x03 /* Miscellaneous controls */
  11. #define TVP5150_AUTOSW_MSK 0x04 /* Autoswitch mask: TVP5150A / TVP5150AM */
  12. /* Reserved 05h */
  13. #define TVP5150_COLOR_KIL_THSH_CTL 0x06 /* Color killer threshold control */
  14. #define TVP5150_LUMA_PROC_CTL_1 0x07 /* Luminance processing control #1 */
  15. #define TVP5150_LUMA_PROC_CTL_2 0x08 /* Luminance processing control #2 */
  16. #define TVP5150_BRIGHT_CTL 0x09 /* Brightness control */
  17. #define TVP5150_SATURATION_CTL 0x0a /* Color saturation control */
  18. #define TVP5150_HUE_CTL 0x0b /* Hue control */
  19. #define TVP5150_CONTRAST_CTL 0x0c /* Contrast control */
  20. #define TVP5150_DATA_RATE_SEL 0x0d /* Outputs and data rates select */
  21. #define TVP5150_LUMA_PROC_CTL_3 0x0e /* Luminance processing control #3 */
  22. #define TVP5150_CONF_SHARED_PIN 0x0f /* Configuration shared pins */
  23. /* Reserved 10h */
  24. #define TVP5150_ACT_VD_CROP_ST_MSB 0x11 /* Active video cropping start MSB */
  25. #define TVP5150_ACT_VD_CROP_ST_LSB 0x12 /* Active video cropping start LSB */
  26. #define TVP5150_ACT_VD_CROP_STP_MSB 0x13 /* Active video cropping stop MSB */
  27. #define TVP5150_ACT_VD_CROP_STP_LSB 0x14 /* Active video cropping stop LSB */
  28. #define TVP5150_GENLOCK 0x15 /* Genlock/RTC */
  29. #define TVP5150_HORIZ_SYNC_START 0x16 /* Horizontal sync start */
  30. /* Reserved 17h */
  31. #define TVP5150_VERT_BLANKING_START 0x18 /* Vertical blanking start */
  32. #define TVP5150_VERT_BLANKING_STOP 0x19 /* Vertical blanking stop */
  33. #define TVP5150_CHROMA_PROC_CTL_1 0x1a /* Chrominance processing control #1 */
  34. #define TVP5150_CHROMA_PROC_CTL_2 0x1b /* Chrominance processing control #2 */
  35. #define TVP5150_INT_RESET_REG_B 0x1c /* Interrupt reset register B */
  36. #define TVP5150_INT_ENABLE_REG_B 0x1d /* Interrupt enable register B */
  37. #define TVP5150_INTT_CONFIG_REG_B 0x1e /* Interrupt configuration register B */
  38. /* Reserved 1Fh-27h */
  39. #define VIDEO_STD_MASK (0x07 >> 1)
  40. #define TVP5150_VIDEO_STD 0x28 /* Video standard */
  41. #define VIDEO_STD_AUTO_SWITCH_BIT 0x00
  42. #define VIDEO_STD_NTSC_MJ_BIT 0x02
  43. #define VIDEO_STD_PAL_BDGHIN_BIT 0x04
  44. #define VIDEO_STD_PAL_M_BIT 0x06
  45. #define VIDEO_STD_PAL_COMBINATION_N_BIT 0x08
  46. #define VIDEO_STD_NTSC_4_43_BIT 0x0a
  47. #define VIDEO_STD_SECAM_BIT 0x0c
  48. #define VIDEO_STD_NTSC_MJ_BIT_AS 0x01
  49. #define VIDEO_STD_PAL_BDGHIN_BIT_AS 0x03
  50. #define VIDEO_STD_PAL_M_BIT_AS 0x05
  51. #define VIDEO_STD_PAL_COMBINATION_N_BIT_AS 0x07
  52. #define VIDEO_STD_NTSC_4_43_BIT_AS 0x09
  53. #define VIDEO_STD_SECAM_BIT_AS 0x0b
  54. /* Reserved 29h-2bh */
  55. #define TVP5150_CB_GAIN_FACT 0x2c /* Cb gain factor */
  56. #define TVP5150_CR_GAIN_FACTOR 0x2d /* Cr gain factor */
  57. #define TVP5150_MACROVISION_ON_CTR 0x2e /* Macrovision on counter */
  58. #define TVP5150_MACROVISION_OFF_CTR 0x2f /* Macrovision off counter */
  59. #define TVP5150_REV_SELECT 0x30 /* revision select (TVP5150AM1 only) */
  60. /* Reserved 31h-7Fh */
  61. #define TVP5150_MSB_DEV_ID 0x80 /* MSB of device ID */
  62. #define TVP5150_LSB_DEV_ID 0x81 /* LSB of device ID */
  63. #define TVP5150_ROM_MAJOR_VER 0x82 /* ROM major version */
  64. #define TVP5150_ROM_MINOR_VER 0x83 /* ROM minor version */
  65. #define TVP5150_VERT_LN_COUNT_MSB 0x84 /* Vertical line count MSB */
  66. #define TVP5150_VERT_LN_COUNT_LSB 0x85 /* Vertical line count LSB */
  67. #define TVP5150_INT_STATUS_REG_B 0x86 /* Interrupt status register B */
  68. #define TVP5150_INT_ACTIVE_REG_B 0x87 /* Interrupt active register B */
  69. #define TVP5150_STATUS_REG_1 0x88 /* Status register #1 */
  70. #define TVP5150_STATUS_REG_2 0x89 /* Status register #2 */
  71. #define TVP5150_STATUS_REG_3 0x8a /* Status register #3 */
  72. #define TVP5150_STATUS_REG_4 0x8b /* Status register #4 */
  73. #define TVP5150_STATUS_REG_5 0x8c /* Status register #5 */
  74. /* Reserved 8Dh-8Fh */
  75. /* Closed caption data registers */
  76. #define TVP5150_CC_DATA_INI 0x90
  77. #define TVP5150_CC_DATA_END 0x93
  78. /* WSS data registers */
  79. #define TVP5150_WSS_DATA_INI 0x94
  80. #define TVP5150_WSS_DATA_END 0x99
  81. /* VPS data registers */
  82. #define TVP5150_VPS_DATA_INI 0x9a
  83. #define TVP5150_VPS_DATA_END 0xa6
  84. /* VITC data registers */
  85. #define TVP5150_VITC_DATA_INI 0xa7
  86. #define TVP5150_VITC_DATA_END 0xaf
  87. #define TVP5150_VBI_FIFO_READ_DATA 0xb0 /* VBI FIFO read data */
  88. /* Teletext filter 1 */
  89. #define TVP5150_TELETEXT_FIL1_INI 0xb1
  90. #define TVP5150_TELETEXT_FIL1_END 0xb5
  91. /* Teletext filter 2 */
  92. #define TVP5150_TELETEXT_FIL2_INI 0xb6
  93. #define TVP5150_TELETEXT_FIL2_END 0xba
  94. #define TVP5150_TELETEXT_FIL_ENA 0xbb /* Teletext filter enable */
  95. /* Reserved BCh-BFh */
  96. #define TVP5150_INT_STATUS_REG_A 0xc0 /* Interrupt status register A */
  97. #define TVP5150_INT_ENABLE_REG_A 0xc1 /* Interrupt enable register A */
  98. #define TVP5150_INT_CONF 0xc2 /* Interrupt configuration */
  99. #define TVP5150_VDP_CONF_RAM_DATA 0xc3 /* VDP configuration RAM data */
  100. #define TVP5150_CONF_RAM_ADDR_LOW 0xc4 /* Configuration RAM address low byte */
  101. #define TVP5150_CONF_RAM_ADDR_HIGH 0xc5 /* Configuration RAM address high byte */
  102. #define TVP5150_VDP_STATUS_REG 0xc6 /* VDP status register */
  103. #define TVP5150_FIFO_WORD_COUNT 0xc7 /* FIFO word count */
  104. #define TVP5150_FIFO_INT_THRESHOLD 0xc8 /* FIFO interrupt threshold */
  105. #define TVP5150_FIFO_RESET 0xc9 /* FIFO reset */
  106. #define TVP5150_LINE_NUMBER_INT 0xca /* Line number interrupt */
  107. #define TVP5150_PIX_ALIGN_REG_LOW 0xcb /* Pixel alignment register low byte */
  108. #define TVP5150_PIX_ALIGN_REG_HIGH 0xcc /* Pixel alignment register high byte */
  109. #define TVP5150_FIFO_OUT_CTRL 0xcd /* FIFO output control */
  110. /* Reserved CEh */
  111. #define TVP5150_FULL_FIELD_ENA 0xcf /* Full field enable 1 */
  112. /* Line mode registers */
  113. #define TVP5150_LINE_MODE_INI 0xd0
  114. #define TVP5150_LINE_MODE_END 0xfb
  115. #define TVP5150_FULL_FIELD_MODE_REG 0xfc /* Full field mode register */
  116. /* Reserved FDh-FFh */