sh_mobile_hdmi.h 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. struct sh_mobile_lcdc_chan_cfg *lcd_chan;
  30. struct device *lcd_dev;
  31. unsigned int flags;
  32. long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq,
  33. unsigned long *parent_freq);
  34. };
  35. #endif