Kuninori Morimoto | fdec79c | 2018-08-02 01:47:30 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 |
| 2 | * |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 3 | * Fifo-attached Serial Interface (FSI) support for SH7724 |
| 4 | * |
| 5 | * Copyright (C) 2009 Renesas Solutions Corp. |
| 6 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 7 | */ |
Kuninori Morimoto | fdec79c | 2018-08-02 01:47:30 +0000 | [diff] [blame] | 8 | #ifndef __SOUND_FSI_H |
| 9 | #define __SOUND_FSI_H |
| 10 | |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 11 | #include <linux/clk.h> |
| 12 | #include <sound/soc.h> |
| 13 | |
Kuninori Morimoto | f17c13c | 2011-01-24 10:43:19 +0900 | [diff] [blame] | 14 | /* |
Kuninori Morimoto | 5d0bfc5 | 2012-12-16 22:12:55 -0800 | [diff] [blame] | 15 | * flags |
Kuninori Morimoto | f17c13c | 2011-01-24 10:43:19 +0900 | [diff] [blame] | 16 | */ |
Kuninori Morimoto | 5d0bfc5 | 2012-12-16 22:12:55 -0800 | [diff] [blame] | 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 */ |
Kuninori Morimoto | ab6f6d8 | 2012-11-05 18:30:38 -0800 | [diff] [blame] | 20 | |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 21 | struct sh_fsi_port_info { |
| 22 | unsigned long flags; |
Kuninori Morimoto | 7da9ced | 2012-02-03 00:59:33 -0800 | [diff] [blame] | 23 | int tx_id; |
| 24 | int rx_id; |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 25 | }; |
| 26 | |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 27 | struct sh_fsi_platform_info { |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 28 | struct sh_fsi_port_info port_a; |
| 29 | struct sh_fsi_port_info port_b; |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 30 | }; |
| 31 | |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 32 | #endif /* __SOUND_FSI_H */ |