rsnd.h (68a550248e295ba548e30c876ccdec351e286eee) rsnd.h (e8e7b7bdc65c19f8d84c25f7e0d21176d598c870)
1/*
2 * Renesas R-Car
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

--- 103 unchanged lines hidden (view full) ---

112 RSND_REG_SHARE26,
113 RSND_REG_SHARE27,
114 RSND_REG_SHARE28,
115 RSND_REG_SHARE29,
116
117 RSND_REG_MAX,
118};
119
1/*
2 * Renesas R-Car
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

--- 103 unchanged lines hidden (view full) ---

112 RSND_REG_SHARE26,
113 RSND_REG_SHARE27,
114 RSND_REG_SHARE28,
115 RSND_REG_SHARE29,
116
117 RSND_REG_MAX,
118};
119
120/* Gen1 only */
121#define RSND_REG_SRC_ROUTE_SEL RSND_REG_SHARE01
122#define RSND_REG_SRC_TMG_SEL0 RSND_REG_SHARE02
123#define RSND_REG_SRC_TMG_SEL1 RSND_REG_SHARE03
124#define RSND_REG_SRC_TMG_SEL2 RSND_REG_SHARE04
125#define RSND_REG_SRC_ROUTE_CTRL RSND_REG_SHARE05
126#define RSND_REG_SRC_MNFSR RSND_REG_SHARE06
127#define RSND_REG_AUDIO_CLK_SEL3 RSND_REG_SHARE07
128#define RSND_REG_AUDIO_CLK_SEL4 RSND_REG_SHARE08
129#define RSND_REG_AUDIO_CLK_SEL5 RSND_REG_SHARE09
130
131/* Gen2 only */
132#define RSND_REG_SRC_CTRL RSND_REG_SHARE01
133#define RSND_REG_SSI_CTRL RSND_REG_SHARE02
134#define RSND_REG_SSI_BUSIF_MODE RSND_REG_SHARE03
135#define RSND_REG_SSI_BUSIF_ADINR RSND_REG_SHARE04
136#define RSND_REG_SSI_INT_ENABLE RSND_REG_SHARE05
137#define RSND_REG_SRC_BSDSR RSND_REG_SHARE06
138#define RSND_REG_SRC_BSISR RSND_REG_SHARE07

--- 263 unchanged lines hidden (view full) ---

402 */
403int rsnd_adg_ssi_clk_stop(struct rsnd_mod *mod);
404int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *mod, unsigned int rate);
405int rsnd_adg_probe(struct platform_device *pdev,
406 const struct rsnd_of_data *of_data,
407 struct rsnd_priv *priv);
408void rsnd_adg_remove(struct platform_device *pdev,
409 struct rsnd_priv *priv);
120/* Gen2 only */
121#define RSND_REG_SRC_CTRL RSND_REG_SHARE01
122#define RSND_REG_SSI_CTRL RSND_REG_SHARE02
123#define RSND_REG_SSI_BUSIF_MODE RSND_REG_SHARE03
124#define RSND_REG_SSI_BUSIF_ADINR RSND_REG_SHARE04
125#define RSND_REG_SSI_INT_ENABLE RSND_REG_SHARE05
126#define RSND_REG_SRC_BSDSR RSND_REG_SHARE06
127#define RSND_REG_SRC_BSISR RSND_REG_SHARE07

--- 263 unchanged lines hidden (view full) ---

391 */
392int rsnd_adg_ssi_clk_stop(struct rsnd_mod *mod);
393int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *mod, unsigned int rate);
394int rsnd_adg_probe(struct platform_device *pdev,
395 const struct rsnd_of_data *of_data,
396 struct rsnd_priv *priv);
397void rsnd_adg_remove(struct platform_device *pdev,
398 struct rsnd_priv *priv);
410int rsnd_adg_set_convert_clk_gen1(struct rsnd_priv *priv,
411 struct rsnd_mod *mod,
412 unsigned int src_rate,
413 unsigned int dst_rate);
414int rsnd_adg_set_convert_clk_gen2(struct rsnd_mod *mod,
415 struct rsnd_dai_stream *io,
416 unsigned int src_rate,
417 unsigned int dst_rate);
418int rsnd_adg_set_convert_timing_gen2(struct rsnd_mod *mod,
419 struct rsnd_dai_stream *io);
420int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *mod,
421 struct rsnd_dai_stream *io);

--- 232 unchanged lines hidden ---
399int rsnd_adg_set_convert_clk_gen2(struct rsnd_mod *mod,
400 struct rsnd_dai_stream *io,
401 unsigned int src_rate,
402 unsigned int dst_rate);
403int rsnd_adg_set_convert_timing_gen2(struct rsnd_mod *mod,
404 struct rsnd_dai_stream *io);
405int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *mod,
406 struct rsnd_dai_stream *io);

--- 232 unchanged lines hidden ---