video_ad7179.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * (C) Copyright 2003 Wolfgang Grandegger <wg@denx.de>
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #define VIDEO_ENCODER_NAME "Analog Devices AD7179"
  23. #define VIDEO_ENCODER_I2C_RATE 100000 /* Max rate is 100Khz */
  24. #define VIDEO_ENCODER_CB_Y_CR_Y /* Use CB Y CR Y format... */
  25. #define VIDEO_MODE_YUYV /* The only mode supported by this encoder */
  26. #undef VIDEO_MODE_RGB
  27. #define VIDEO_MODE_BPP 16
  28. #ifdef VIDEO_MODE_PAL
  29. #define VIDEO_ACTIVE_COLS 720
  30. #define VIDEO_ACTIVE_ROWS 576
  31. #define VIDEO_VISIBLE_COLS 640
  32. #define VIDEO_VISIBLE_ROWS 480
  33. #else
  34. #error "NTSC mode is not supported"
  35. #endif
  36. static unsigned char video_encoder_data[] = {
  37. 0x05, /* Mode Register 0 */
  38. 0x11, /* Mode Register 1 */
  39. 0x20, /* Mode Register 2 */
  40. 0x0C, /* Mode Register 3 */
  41. 0x01, /* Mode Register 4 */
  42. 0x00, /* Reserved */
  43. 0x00, /* Reserved */
  44. 0x04, /* Timing Register 0 */
  45. 0x00, /* Timing Register 1 */
  46. 0xCB, /* Subcarrier Frequency Register 0 */
  47. 0x0A, /* Subcarrier Frequency Register 1 */
  48. 0x09, /* Subcarrier Frequency Register 2 */
  49. 0x2A, /* Subcarrier Frequency Register 3 */
  50. 0x00, /* Subcarrier Phase */
  51. 0x00, /* Closed Captioning Ext Reg 0 */
  52. 0x00, /* Closed Captioning Ext Reg 1 */
  53. 0x00, /* Closed Captioning Reg 0 */
  54. 0x00, /* Closed Captioning Reg 1 */
  55. 0x00, /* Pedestal Control Reg 0 */
  56. 0x00, /* Pedestal Control Reg 1 */
  57. 0x00, /* Pedestal Control Reg 2 */
  58. 0x00, /* Pedestal Control Reg 3 */
  59. 0x00, /* CGMS_WSS Reg 0 */
  60. 0x00, /* CGMS_WSS Reg 0 */
  61. 0x00, /* CGMS_WSS Reg 0 */
  62. 0x00 /* Teletext Req. Control Reg */
  63. } ;