rcar_snd.h 957 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Renesas R-Car SRU/SCU/SSIU/SSI support
  3. *
  4. * Copyright (C) 2013 Renesas Solutions Corp.
  5. * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef RCAR_SND_H
  12. #define RCAR_SND_H
  13. #include <linux/sh_clk.h>
  14. #define RSND_GEN1_SRU 0
  15. #define RSND_GEN2_SRU 0
  16. #define RSND_BASE_MAX 1
  17. struct rsnd_scu_platform_info {
  18. u32 flags;
  19. };
  20. struct rsnd_dai_platform_info {
  21. int ssi_id_playback;
  22. int ssi_id_capture;
  23. };
  24. /*
  25. * flags
  26. *
  27. * 0x0000000A
  28. *
  29. * A : generation
  30. */
  31. #define RSND_GEN1 (1 << 0) /* fixme */
  32. #define RSND_GEN2 (2 << 0) /* fixme */
  33. struct rcar_snd_info {
  34. u32 flags;
  35. struct rsnd_scu_platform_info *scu_info;
  36. int scu_info_nr;
  37. struct rsnd_dai_platform_info *dai_info;
  38. int dai_info_nr;
  39. int (*start)(int id);
  40. int (*stop)(int id);
  41. };
  42. #endif