blob: 89eafe23ef8871d742a001f29ec2bc670d42c041 [file] [log] [blame]
Kuninori Morimotofdec79c2018-08-02 01:47:30 +00001/* SPDX-License-Identifier: GPL-2.0
2 *
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +09003 * Fifo-attached Serial Interface (FSI) support for SH7724
4 *
5 * Copyright (C) 2009 Renesas Solutions Corp.
6 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +09007 */
Kuninori Morimotofdec79c2018-08-02 01:47:30 +00008#ifndef __SOUND_FSI_H
9#define __SOUND_FSI_H
10
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090011#include <linux/clk.h>
12#include <sound/soc.h>
13
Kuninori Morimotof17c13c2011-01-24 10:43:19 +090014/*
Kuninori Morimoto5d0bfc52012-12-16 22:12:55 -080015 * flags
Kuninori Morimotof17c13c2011-01-24 10:43:19 +090016 */
Kuninori Morimoto5d0bfc52012-12-16 22:12:55 -080017#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 */
Kuninori Morimotoab6f6d82012-11-05 18:30:38 -080020
Kuninori Morimotofec691e2012-02-03 00:58:48 -080021struct sh_fsi_port_info {
22 unsigned long flags;
Kuninori Morimoto7da9ced2012-02-03 00:59:33 -080023 int tx_id;
24 int rx_id;
Kuninori Morimotofec691e2012-02-03 00:58:48 -080025};
26
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090027struct sh_fsi_platform_info {
Kuninori Morimotofec691e2012-02-03 00:58:48 -080028 struct sh_fsi_port_info port_a;
29 struct sh_fsi_port_info port_b;
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090030};
31
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090032#endif /* __SOUND_FSI_H */