ASoC: fsi: remove SH_FSI_xxx_INV flags
[deliverable/linux.git] / include / sound / sh_fsi.h
... / ...
CommitLineData
1#ifndef __SOUND_FSI_H
2#define __SOUND_FSI_H
3
4/*
5 * Fifo-attached Serial Interface (FSI) support for SH7724
6 *
7 * Copyright (C) 2009 Renesas Solutions Corp.
8 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#define FSI_PORT_A 0
16#define FSI_PORT_B 1
17
18#include <linux/clk.h>
19#include <sound/soc.h>
20
21/*
22 * flags format
23 *
24 * 0x00000CBA
25 *
26 * A: inversion
27 * B: format mode
28 * C: chip specific
29 * D: clock selecter if master mode
30 */
31
32/* B: format mode */
33#define SH_FSI_FMT_MASK 0x000000F0
34#define SH_FSI_FMT_DAI (0 << 4)
35#define SH_FSI_FMT_SPDIF (1 << 4)
36
37/* C: chip specific */
38#define SH_FSI_OPTION_MASK 0x00000F00
39#define SH_FSI_ENABLE_STREAM_MODE (1 << 8) /* for 16bit data */
40
41/* D: clock selecter if master mode */
42#define SH_FSI_CLK_MASK 0x0000F000
43#define SH_FSI_CLK_EXTERNAL (0 << 12)
44#define SH_FSI_CLK_CPG (1 << 12) /* FSIxCK + FSI-DIV */
45
46struct sh_fsi_port_info {
47 unsigned long flags;
48 int tx_id;
49 int rx_id;
50};
51
52struct sh_fsi_platform_info {
53 struct sh_fsi_port_info port_a;
54 struct sh_fsi_port_info port_b;
55};
56
57#endif /* __SOUND_FSI_H */
This page took 0.023769 seconds and 5 git commands to generate.