ad9389b.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Analog Devices AD9389B/AD9889B video encoder driver header
  3. *
  4. * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
  5. *
  6. * This program is free software; you may redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  11. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  12. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  13. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  14. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  15. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  16. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. * SOFTWARE.
  18. */
  19. #ifndef AD9389B_H
  20. #define AD9389B_H
  21. enum ad9389b_tmds_pll_gear {
  22. AD9389B_TMDS_PLL_GEAR_AUTOMATIC,
  23. AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC,
  24. };
  25. /* Platform dependent definitions */
  26. struct ad9389b_platform_data {
  27. enum ad9389b_tmds_pll_gear tmds_pll_gear ;
  28. /* Differential Data/Clock Output Drive Strength (reg. 0xa2/0xa3) */
  29. u8 diff_data_drive_strength;
  30. u8 diff_clk_drive_strength;
  31. };
  32. /* notify events */
  33. #define AD9389B_MONITOR_DETECT 0
  34. #define AD9389B_EDID_DETECT 1
  35. struct ad9389b_monitor_detect {
  36. int present;
  37. };
  38. struct ad9389b_edid_detect {
  39. int present;
  40. int segment;
  41. };
  42. #endif