Kuninori Morimoto | 1536a96 | 2013-07-21 21:35:52 -0700 | [diff] [blame] | 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 | |
| 12 | #ifndef RCAR_SND_H |
| 13 | #define RCAR_SND_H |
| 14 | |
| 15 | #include <linux/sh_clk.h> |
| 16 | |
| 17 | |
| 18 | #define RSND_BASE_MAX 0 |
| 19 | |
| 20 | struct rsnd_dai_platform_info { |
| 21 | int ssi_id_playback; |
| 22 | int ssi_id_capture; |
| 23 | }; |
| 24 | |
Kuninori Morimoto | 3337744 | 2013-07-21 21:36:21 -0700 | [diff] [blame^] | 25 | /* |
| 26 | * flags |
| 27 | * |
| 28 | * 0x0000000A |
| 29 | * |
| 30 | * A : generation |
| 31 | */ |
| 32 | #define RSND_GEN1 (1 << 0) /* fixme */ |
| 33 | #define RSND_GEN2 (2 << 0) /* fixme */ |
| 34 | |
Kuninori Morimoto | 1536a96 | 2013-07-21 21:35:52 -0700 | [diff] [blame] | 35 | struct rcar_snd_info { |
| 36 | u32 flags; |
| 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 | |
| 43 | #endif |