Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0
0002  *
0003  * Fifo-attached Serial Interface (FSI) support for SH7724
0004  *
0005  * Copyright (C) 2009 Renesas Solutions Corp.
0006  * Kuninori Morimoto <morimoto.kuninori@renesas.com>
0007  */
0008 #ifndef __SOUND_FSI_H
0009 #define __SOUND_FSI_H
0010 
0011 #include <linux/clk.h>
0012 #include <sound/soc.h>
0013 
0014 /*
0015  * flags
0016  */
0017 #define SH_FSI_FMT_SPDIF        (1 << 0) /* spdif for HDMI */
0018 #define SH_FSI_ENABLE_STREAM_MODE   (1 << 1) /* for 16bit data */
0019 #define SH_FSI_CLK_CPG          (1 << 2) /* FSIxCK + FSI-DIV */
0020 
0021 struct sh_fsi_port_info {
0022     unsigned long flags;
0023     int tx_id;
0024     int rx_id;
0025 };
0026 
0027 struct sh_fsi_platform_info {
0028     struct sh_fsi_port_info port_a;
0029     struct sh_fsi_port_info port_b;
0030 };
0031 
0032 #endif /* __SOUND_FSI_H */