blob: 14942a827fe5d114b3f09cb296359f1646d510e5 [file] [log] [blame]
Kuninori Morimoto1536a962013-07-21 21:35:52 -07001/*
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
20struct rsnd_dai_platform_info {
21 int ssi_id_playback;
22 int ssi_id_capture;
23};
24
Kuninori Morimoto33377442013-07-21 21:36:21 -070025/*
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 Morimoto1536a962013-07-21 21:35:52 -070035struct 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