xref: /openbmc/linux/sound/soc/pxa/pxa-ssp.h (revision 60772e48)
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 /* SSP clock sources */
13 #define PXA_SSP_CLK_PLL	0
14 #define PXA_SSP_CLK_EXT	1
15 #define PXA_SSP_CLK_NET	2
16 #define PXA_SSP_CLK_AUDIO	3
17 #define PXA_SSP_CLK_NET_PLL	4
18 
19 /* SSP audio dividers */
20 #define PXA_SSP_AUDIO_DIV_ACDS		0
21 #define PXA_SSP_AUDIO_DIV_SCDB		1
22 #define PXA_SSP_DIV_SCR				2
23 
24 /* SSP ACDS audio dividers values */
25 #define PXA_SSP_CLK_AUDIO_DIV_1		0
26 #define PXA_SSP_CLK_AUDIO_DIV_2		1
27 #define PXA_SSP_CLK_AUDIO_DIV_4		2
28 #define PXA_SSP_CLK_AUDIO_DIV_8		3
29 #define PXA_SSP_CLK_AUDIO_DIV_16	4
30 #define PXA_SSP_CLK_AUDIO_DIV_32	5
31 
32 /* SSP divider bypass */
33 #define PXA_SSP_CLK_SCDB_4		0
34 #define PXA_SSP_CLK_SCDB_1		1
35 #define PXA_SSP_CLK_SCDB_8		2
36 
37 #define PXA_SSP_PLL_OUT  0
38 
39 #endif
40