ad9389b.h 789 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Analog Devices AD9389B/AD9889B video encoder driver header
  4. *
  5. * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
  6. */
  7. #ifndef AD9389B_H
  8. #define AD9389B_H
  9. enum ad9389b_tmds_pll_gear {
  10. AD9389B_TMDS_PLL_GEAR_AUTOMATIC,
  11. AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC,
  12. };
  13. /* Platform dependent definitions */
  14. struct ad9389b_platform_data {
  15. enum ad9389b_tmds_pll_gear tmds_pll_gear ;
  16. /* Differential Data/Clock Output Drive Strength (reg. 0xa2/0xa3) */
  17. u8 diff_data_drive_strength;
  18. u8 diff_clk_drive_strength;
  19. };
  20. /* notify events */
  21. #define AD9389B_MONITOR_DETECT 0
  22. #define AD9389B_EDID_DETECT 1
  23. struct ad9389b_monitor_detect {
  24. int present;
  25. };
  26. struct ad9389b_edid_detect {
  27. int present;
  28. int segment;
  29. };
  30. #endif