sh_fsi.h 847 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __SOUND_FSI_H
  2. #define __SOUND_FSI_H
  3. /*
  4. * Fifo-attached Serial Interface (FSI) support for SH7724
  5. *
  6. * Copyright (C) 2009 Renesas Solutions Corp.
  7. * Kuninori Morimoto <morimoto.kuninori@renesas.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #include <linux/clk.h>
  14. #include <sound/soc.h>
  15. /*
  16. * flags
  17. */
  18. #define SH_FSI_FMT_SPDIF (1 << 0) /* spdif for HDMI */
  19. #define SH_FSI_ENABLE_STREAM_MODE (1 << 1) /* for 16bit data */
  20. #define SH_FSI_CLK_CPG (1 << 2) /* FSIxCK + FSI-DIV */
  21. struct sh_fsi_port_info {
  22. unsigned long flags;
  23. int tx_id;
  24. int rx_id;
  25. };
  26. struct sh_fsi_platform_info {
  27. struct sh_fsi_port_info port_a;
  28. struct sh_fsi_port_info port_b;
  29. };
  30. #endif /* __SOUND_FSI_H */