xref: /openbmc/linux/sound/soc/pxa/pxa-ssp.h (revision bc5aa3a0)
1 /*
2  * ASoC PXA SSP port support
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 
9 #ifndef _PXA_SSP_H
10 #define _PXA_SSP_H
11 
12 /* pxa DAI SSP IDs */
13 #define PXA_DAI_SSP1			0
14 #define PXA_DAI_SSP2			1
15 #define PXA_DAI_SSP3			2
16 #define PXA_DAI_SSP4			3
17 
18 /* SSP clock sources */
19 #define PXA_SSP_CLK_PLL	0
20 #define PXA_SSP_CLK_EXT	1
21 #define PXA_SSP_CLK_NET	2
22 #define PXA_SSP_CLK_AUDIO	3
23 #define PXA_SSP_CLK_NET_PLL	4
24 
25 /* SSP audio dividers */
26 #define PXA_SSP_AUDIO_DIV_ACDS		0
27 #define PXA_SSP_AUDIO_DIV_SCDB		1
28 #define PXA_SSP_DIV_SCR				2
29 
30 /* SSP ACDS audio dividers values */
31 #define PXA_SSP_CLK_AUDIO_DIV_1		0
32 #define PXA_SSP_CLK_AUDIO_DIV_2		1
33 #define PXA_SSP_CLK_AUDIO_DIV_4		2
34 #define PXA_SSP_CLK_AUDIO_DIV_8		3
35 #define PXA_SSP_CLK_AUDIO_DIV_16	4
36 #define PXA_SSP_CLK_AUDIO_DIV_32	5
37 
38 /* SSP divider bypass */
39 #define PXA_SSP_CLK_SCDB_4		0
40 #define PXA_SSP_CLK_SCDB_1		1
41 #define PXA_SSP_CLK_SCDB_8		2
42 
43 #define PXA_SSP_PLL_OUT  0
44 
45 #endif
46