Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 1 | #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 Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 14 | #include <linux/clk.h> |
| 15 | #include <sound/soc.h> |
| 16 | |
Kuninori Morimoto | f17c13c | 2011-01-24 10:43:19 +0900 | [diff] [blame] | 17 | /* |
Kuninori Morimoto | 5d0bfc5 | 2012-12-16 22:12:55 -0800 | [diff] [blame] | 18 | * flags |
Kuninori Morimoto | f17c13c | 2011-01-24 10:43:19 +0900 | [diff] [blame] | 19 | */ |
Kuninori Morimoto | 5d0bfc5 | 2012-12-16 22:12:55 -0800 | [diff] [blame] | 20 | #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 Morimoto | ab6f6d8 | 2012-11-05 18:30:38 -0800 | [diff] [blame] | 23 | |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 24 | struct sh_fsi_port_info { |
| 25 | unsigned long flags; |
Kuninori Morimoto | 7da9ced | 2012-02-03 00:59:33 -0800 | [diff] [blame] | 26 | int tx_id; |
| 27 | int rx_id; |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 28 | }; |
| 29 | |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 30 | struct sh_fsi_platform_info { |
Kuninori Morimoto | fec691e | 2012-02-03 00:58:48 -0800 | [diff] [blame] | 31 | struct sh_fsi_port_info port_a; |
| 32 | struct sh_fsi_port_info port_b; |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 33 | }; |
| 34 | |
Kuninori Morimoto | a4d7d55 | 2009-08-20 21:01:05 +0900 | [diff] [blame] | 35 | #endif /* __SOUND_FSI_H */ |