Merge tag 'kvm-s390-next-6.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / include / sound / sh_fsi.h
CommitLineData
fdec79c1
KM
1/* SPDX-License-Identifier: GPL-2.0
2 *
a4d7d550
KM
3 * Fifo-attached Serial Interface (FSI) support for SH7724
4 *
5 * Copyright (C) 2009 Renesas Solutions Corp.
6 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
a4d7d550 7 */
fdec79c1
KM
8#ifndef __SOUND_FSI_H
9#define __SOUND_FSI_H
10
a4d7d550
KM
11#include <linux/clk.h>
12#include <sound/soc.h>
13
f17c13ca 14/*
5d0bfc5e 15 * flags
f17c13ca 16 */
5d0bfc5e
KM
17#define SH_FSI_FMT_SPDIF (1 << 0) /* spdif for HDMI */
18#define SH_FSI_ENABLE_STREAM_MODE (1 << 1) /* for 16bit data */
19#define SH_FSI_CLK_CPG (1 << 2) /* FSIxCK + FSI-DIV */
ab6f6d85 20
fec691e7
KM
21struct sh_fsi_port_info {
22 unsigned long flags;
7da9ced6
KM
23 int tx_id;
24 int rx_id;
fec691e7
KM
25};
26
a4d7d550 27struct sh_fsi_platform_info {
fec691e7
KM
28 struct sh_fsi_port_info port_a;
29 struct sh_fsi_port_info port_b;
a4d7d550
KM
30};
31
a4d7d550 32#endif /* __SOUND_FSI_H */