blob: 7a9710b4b799cd057ec2319e16a9237586d1411a [file] [log] [blame]
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +09001#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 */
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090014#include <linux/clk.h>
15#include <sound/soc.h>
16
Kuninori Morimotof17c13c2011-01-24 10:43:19 +090017/*
Kuninori Morimoto5d0bfc52012-12-16 22:12:55 -080018 * flags
Kuninori Morimotof17c13c2011-01-24 10:43:19 +090019 */
Kuninori Morimoto5d0bfc52012-12-16 22:12:55 -080020#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 */
Kuninori Morimotoab6f6d82012-11-05 18:30:38 -080023
Kuninori Morimotofec691e2012-02-03 00:58:48 -080024struct sh_fsi_port_info {
25 unsigned long flags;
Kuninori Morimoto7da9ced2012-02-03 00:59:33 -080026 int tx_id;
27 int rx_id;
Kuninori Morimotofec691e2012-02-03 00:58:48 -080028};
29
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090030struct sh_fsi_platform_info {
Kuninori Morimotofec691e2012-02-03 00:58:48 -080031 struct sh_fsi_port_info port_a;
32 struct sh_fsi_port_info port_b;
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090033};
34
Kuninori Morimotoa4d7d552009-08-20 21:01:05 +090035#endif /* __SOUND_FSI_H */