xref: /OK3568_Linux_fs/kernel/include/linux/spi/at73c213.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Board-specific data used to set up AT73c213 audio DAC driver.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef __LINUX_SPI_AT73C213_H
7*4882a593Smuzhiyun #define __LINUX_SPI_AT73C213_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun /**
10*4882a593Smuzhiyun  * at73c213_board_info - how the external DAC is wired to the device.
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  * @ssc_id: SSC platform_driver id the DAC shall use to stream the audio.
13*4882a593Smuzhiyun  * @dac_clk: the external clock used to provide master clock to the DAC.
14*4882a593Smuzhiyun  * @shortname: a short discription for the DAC, seen by userspace tools.
15*4882a593Smuzhiyun  *
16*4882a593Smuzhiyun  * This struct contains the configuration of the hardware connection to the
17*4882a593Smuzhiyun  * external DAC. The DAC needs a master clock and a I2S audio stream. It also
18*4882a593Smuzhiyun  * provides a name which is used to identify it in userspace tools.
19*4882a593Smuzhiyun  */
20*4882a593Smuzhiyun struct at73c213_board_info {
21*4882a593Smuzhiyun 	int		ssc_id;
22*4882a593Smuzhiyun 	struct clk	*dac_clk;
23*4882a593Smuzhiyun 	char		shortname[32];
24*4882a593Smuzhiyun };
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif /* __LINUX_SPI_AT73C213_H */
27