sh_mobile_hdmi.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * SH-Mobile High-Definition Multimedia Interface (HDMI)
  3. *
  4. * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef SH_MOBILE_HDMI_H
  11. #define SH_MOBILE_HDMI_H
  12. struct sh_mobile_lcdc_chan_cfg;
  13. struct device;
  14. struct clk;
  15. /*
  16. * flags format
  17. *
  18. * 0x00000CBA
  19. *
  20. * A: Audio source select
  21. * B: Int output option
  22. * C: Chip specific option
  23. */
  24. /* Audio source select */
  25. #define HDMI_SND_SRC_MASK (0xF << 0)
  26. #define HDMI_SND_SRC_I2S (0 << 0) /* default */
  27. #define HDMI_SND_SRC_SPDIF (1 << 0)
  28. #define HDMI_SND_SRC_DSD (2 << 0)
  29. #define HDMI_SND_SRC_HBR (3 << 0)
  30. /* Int output option */
  31. #define HDMI_OUTPUT_PUSH_PULL (1 << 4) /* System control : output mode */
  32. #define HDMI_OUTPUT_POLARITY_HI (1 << 5) /* System control : output polarity */
  33. /* Chip specific option */
  34. #define HDMI_32BIT_REG (1 << 8)
  35. #define HDMI_HAS_HTOP1 (1 << 9)
  36. struct sh_mobile_hdmi_info {
  37. unsigned int flags;
  38. long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq,
  39. unsigned long *parent_freq);
  40. };
  41. #endif