adv7343.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * ADV7343 header file
  3. *
  4. * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed .as is. WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef ADV7343_H
  16. #define ADV7343_H
  17. #define ADV7343_COMPOSITE_ID (0)
  18. #define ADV7343_COMPONENT_ID (1)
  19. #define ADV7343_SVIDEO_ID (2)
  20. /**
  21. * adv7343_power_mode - power mode configuration.
  22. * @sleep_mode: on enable the current consumption is reduced to micro ampere
  23. * level. All DACs and the internal PLL circuit are disabled.
  24. * Registers can be read from and written in sleep mode.
  25. * @pll_control: PLL and oversampling control. This control allows internal
  26. * PLL 1 circuit to be powered down and the oversampling to be
  27. * switched off.
  28. * @dac: array to configure power on/off DAC's 1..6
  29. *
  30. * Power mode register (Register 0x0), for more info refer REGISTER MAP ACCESS
  31. * section of datasheet[1], table 17 page no 30.
  32. *
  33. * [1] http://www.analog.com/static/imported-files/data_sheets/ADV7342_7343.pdf
  34. */
  35. struct adv7343_power_mode {
  36. bool sleep_mode;
  37. bool pll_control;
  38. u32 dac[6];
  39. };
  40. /**
  41. * struct adv7343_sd_config - SD Only Output Configuration.
  42. * @sd_dac_out: array configuring SD DAC Outputs 1 and 2
  43. */
  44. struct adv7343_sd_config {
  45. /* SD only Output Configuration */
  46. u32 sd_dac_out[2];
  47. };
  48. /**
  49. * struct adv7343_platform_data - Platform data values and access functions.
  50. * @mode_config: Configuration for power mode.
  51. * @sd_config: SD Only Configuration.
  52. */
  53. struct adv7343_platform_data {
  54. struct adv7343_power_mode mode_config;
  55. struct adv7343_sd_config sd_config;
  56. };
  57. #endif /* End of #ifndef ADV7343_H */