adv7343.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * ADV7343 header file
  4. *
  5. * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  6. */
  7. #ifndef ADV7343_H
  8. #define ADV7343_H
  9. #define ADV7343_COMPOSITE_ID (0)
  10. #define ADV7343_COMPONENT_ID (1)
  11. #define ADV7343_SVIDEO_ID (2)
  12. /**
  13. * struct adv7343_power_mode - power mode configuration.
  14. * @sleep_mode: on enable the current consumption is reduced to micro ampere
  15. * level. All DACs and the internal PLL circuit are disabled.
  16. * Registers can be read from and written in sleep mode.
  17. * @pll_control: PLL and oversampling control. This control allows internal
  18. * PLL 1 circuit to be powered down and the oversampling to be
  19. * switched off.
  20. * @dac: array to configure power on/off DAC's 1..6
  21. *
  22. * Power mode register (Register 0x0), for more info refer REGISTER MAP ACCESS
  23. * section of datasheet[1], table 17 page no 30.
  24. *
  25. * [1] http://www.analog.com/static/imported-files/data_sheets/ADV7342_7343.pdf
  26. */
  27. struct adv7343_power_mode {
  28. bool sleep_mode;
  29. bool pll_control;
  30. u32 dac[6];
  31. };
  32. /**
  33. * struct adv7343_sd_config - SD Only Output Configuration.
  34. * @sd_dac_out: array configuring SD DAC Outputs 1 and 2
  35. */
  36. struct adv7343_sd_config {
  37. /* SD only Output Configuration */
  38. u32 sd_dac_out[2];
  39. };
  40. /**
  41. * struct adv7343_platform_data - Platform data values and access functions.
  42. * @mode_config: Configuration for power mode.
  43. * @sd_config: SD Only Configuration.
  44. */
  45. struct adv7343_platform_data {
  46. struct adv7343_power_mode mode_config;
  47. struct adv7343_sd_config sd_config;
  48. };
  49. #endif /* End of #ifndef ADV7343_H */