adv7343.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_1: power on/off DAC 1.
  29. * @dac_2: power on/off DAC 2.
  30. * @dac_3: power on/off DAC 3.
  31. * @dac_4: power on/off DAC 4.
  32. * @dac_5: power on/off DAC 5.
  33. * @dac_6: power on/off DAC 6.
  34. *
  35. * Power mode register (Register 0x0), for more info refer REGISTER MAP ACCESS
  36. * section of datasheet[1], table 17 page no 30.
  37. *
  38. * [1] http://www.analog.com/static/imported-files/data_sheets/ADV7342_7343.pdf
  39. */
  40. struct adv7343_power_mode {
  41. bool sleep_mode;
  42. bool pll_control;
  43. bool dac_1;
  44. bool dac_2;
  45. bool dac_3;
  46. bool dac_4;
  47. bool dac_5;
  48. bool dac_6;
  49. };
  50. /**
  51. * struct adv7343_sd_config - SD Only Output Configuration.
  52. * @sd_dac_out1: Configure SD DAC Output 1.
  53. * @sd_dac_out2: Configure SD DAC Output 2.
  54. */
  55. struct adv7343_sd_config {
  56. /* SD only Output Configuration */
  57. bool sd_dac_out1;
  58. bool sd_dac_out2;
  59. };
  60. /**
  61. * struct adv7343_platform_data - Platform data values and access functions.
  62. * @mode_config: Configuration for power mode.
  63. * @sd_config: SD Only Configuration.
  64. */
  65. struct adv7343_platform_data {
  66. struct adv7343_power_mode mode_config;
  67. struct adv7343_sd_config sd_config;
  68. };
  69. #endif /* End of #ifndef ADV7343_H */