sh_fsi.h 693 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Fifo-attached Serial Interface (FSI) support for SH7724
  4. *
  5. * Copyright (C) 2009 Renesas Solutions Corp.
  6. * Kuninori Morimoto <morimoto.kuninori@renesas.com>
  7. */
  8. #ifndef __SOUND_FSI_H
  9. #define __SOUND_FSI_H
  10. #include <linux/clk.h>
  11. #include <sound/soc.h>
  12. /*
  13. * flags
  14. */
  15. #define SH_FSI_FMT_SPDIF (1 << 0) /* spdif for HDMI */
  16. #define SH_FSI_ENABLE_STREAM_MODE (1 << 1) /* for 16bit data */
  17. #define SH_FSI_CLK_CPG (1 << 2) /* FSIxCK + FSI-DIV */
  18. struct sh_fsi_port_info {
  19. unsigned long flags;
  20. int tx_id;
  21. int rx_id;
  22. };
  23. struct sh_fsi_platform_info {
  24. struct sh_fsi_port_info port_a;
  25. struct sh_fsi_port_info port_b;
  26. };
  27. #endif /* __SOUND_FSI_H */