blob: 6babd6f7b53770e07b74c281be5b7aa08d84fda6 [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
Kuninori Morimoto07539c12013-07-21 21:36:35 -070017#define RSND_GEN1_SRU 0
Kuninori Morimotodfc94032013-07-21 21:36:46 -070018#define RSND_GEN1_ADG 1
Kuninori Morimoto1536a962013-07-21 21:35:52 -070019
Kuninori Morimoto07539c12013-07-21 21:36:35 -070020#define RSND_GEN2_SRU 0
Kuninori Morimotodfc94032013-07-21 21:36:46 -070021#define RSND_GEN2_ADG 1
Kuninori Morimoto07539c12013-07-21 21:36:35 -070022
Kuninori Morimotodfc94032013-07-21 21:36:46 -070023#define RSND_BASE_MAX 2
Kuninori Morimoto07539c12013-07-21 21:36:35 -070024
25struct rsnd_scu_platform_info {
26 u32 flags;
27};
Kuninori Morimoto1536a962013-07-21 21:35:52 -070028
29struct rsnd_dai_platform_info {
30 int ssi_id_playback;
31 int ssi_id_capture;
32};
33
Kuninori Morimoto33377442013-07-21 21:36:21 -070034/*
35 * flags
36 *
37 * 0x0000000A
38 *
39 * A : generation
40 */
41#define RSND_GEN1 (1 << 0) /* fixme */
42#define RSND_GEN2 (2 << 0) /* fixme */
43
Kuninori Morimoto1536a962013-07-21 21:35:52 -070044struct rcar_snd_info {
45 u32 flags;
Kuninori Morimoto07539c12013-07-21 21:36:35 -070046 struct rsnd_scu_platform_info *scu_info;
47 int scu_info_nr;
Kuninori Morimoto1536a962013-07-21 21:35:52 -070048 struct rsnd_dai_platform_info *dai_info;
49 int dai_info_nr;
50 int (*start)(int id);
51 int (*stop)(int id);
52};
53
54#endif