sh_mobile_hdmi.h 902 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * 0x0000000A
  19. *
  20. * A: Audio source select
  21. */
  22. /* Audio source select */
  23. #define HDMI_SND_SRC_MASK (0xF << 0)
  24. #define HDMI_SND_SRC_I2S (0 << 0) /* default */
  25. #define HDMI_SND_SRC_SPDIF (1 << 0)
  26. #define HDMI_SND_SRC_DSD (2 << 0)
  27. #define HDMI_SND_SRC_HBR (3 << 0)
  28. struct sh_mobile_hdmi_info {
  29. unsigned int flags;
  30. long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq,
  31. unsigned long *parent_freq);
  32. };
  33. #endif