regs-sdo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* drivers/media/platform/s5p-tv/regs-sdo.h
  2. *
  3. * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com/
  5. *
  6. * SDO register description file
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef SAMSUNG_REGS_SDO_H
  13. #define SAMSUNG_REGS_SDO_H
  14. /*
  15. * Register part
  16. */
  17. #define SDO_CLKCON 0x0000
  18. #define SDO_CONFIG 0x0008
  19. #define SDO_VBI 0x0014
  20. #define SDO_DAC 0x003C
  21. #define SDO_CCCON 0x0180
  22. #define SDO_IRQ 0x0280
  23. #define SDO_IRQMASK 0x0284
  24. #define SDO_VERSION 0x03D8
  25. /*
  26. * Bit definition part
  27. */
  28. /* SDO Clock Control Register (SDO_CLKCON) */
  29. #define SDO_TVOUT_SW_RESET (1 << 4)
  30. #define SDO_TVOUT_CLOCK_READY (1 << 1)
  31. #define SDO_TVOUT_CLOCK_ON (1 << 0)
  32. /* SDO Video Standard Configuration Register (SDO_CONFIG) */
  33. #define SDO_PROGRESSIVE (1 << 4)
  34. #define SDO_NTSC_M 0
  35. #define SDO_PAL_M 1
  36. #define SDO_PAL_BGHID 2
  37. #define SDO_PAL_N 3
  38. #define SDO_PAL_NC 4
  39. #define SDO_NTSC_443 8
  40. #define SDO_PAL_60 9
  41. #define SDO_STANDARD_MASK 0xf
  42. /* SDO VBI Configuration Register (SDO_VBI) */
  43. #define SDO_CVBS_WSS_INS (1 << 14)
  44. #define SDO_CVBS_CLOSED_CAPTION_MASK (3 << 12)
  45. /* SDO DAC Configuration Register (SDO_DAC) */
  46. #define SDO_POWER_ON_DAC (1 << 0)
  47. /* SDO Color Compensation On/Off Control (SDO_CCCON) */
  48. #define SDO_COMPENSATION_BHS_ADJ_OFF (1 << 4)
  49. #define SDO_COMPENSATION_CVBS_COMP_OFF (1 << 0)
  50. /* SDO Interrupt Request Register (SDO_IRQ) */
  51. #define SDO_VSYNC_IRQ_PEND (1 << 0)
  52. #endif /* SAMSUNG_REGS_SDO_H */