Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / sound / sh_fsi.h
CommitLineData
a4d7d550
KM
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 */
a4d7d550
KM
14#include <linux/clk.h>
15#include <sound/soc.h>
16
f17c13ca 17/*
5d0bfc5e 18 * flags
f17c13ca 19 */
5d0bfc5e
KM
20#define SH_FSI_FMT_SPDIF (1 << 0) /* spdif for HDMI */
21#define SH_FSI_ENABLE_STREAM_MODE (1 << 1) /* for 16bit data */
22#define SH_FSI_CLK_CPG (1 << 2) /* FSIxCK + FSI-DIV */
ab6f6d85 23
fec691e7
KM
24struct sh_fsi_port_info {
25 unsigned long flags;
7da9ced6
KM
26 int tx_id;
27 int rx_id;
fec691e7
KM
28};
29
a4d7d550 30struct sh_fsi_platform_info {
fec691e7
KM
31 struct sh_fsi_port_info port_a;
32 struct sh_fsi_port_info port_b;
a4d7d550
KM
33};
34
a4d7d550 35#endif /* __SOUND_FSI_H */