pxa-ssp.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef _PXA_SSP_H
  9. #define _PXA_SSP_H
  10. /* pxa DAI SSP IDs */
  11. #define PXA_DAI_SSP1 0
  12. #define PXA_DAI_SSP2 1
  13. #define PXA_DAI_SSP3 2
  14. #define PXA_DAI_SSP4 3
  15. /* SSP clock sources */
  16. #define PXA_SSP_CLK_PLL 0
  17. #define PXA_SSP_CLK_EXT 1
  18. #define PXA_SSP_CLK_NET 2
  19. #define PXA_SSP_CLK_AUDIO 3
  20. #define PXA_SSP_CLK_NET_PLL 4
  21. /* SSP audio dividers */
  22. #define PXA_SSP_AUDIO_DIV_ACDS 0
  23. #define PXA_SSP_AUDIO_DIV_SCDB 1
  24. #define PXA_SSP_DIV_SCR 2
  25. /* SSP ACDS audio dividers values */
  26. #define PXA_SSP_CLK_AUDIO_DIV_1 0
  27. #define PXA_SSP_CLK_AUDIO_DIV_2 1
  28. #define PXA_SSP_CLK_AUDIO_DIV_4 2
  29. #define PXA_SSP_CLK_AUDIO_DIV_8 3
  30. #define PXA_SSP_CLK_AUDIO_DIV_16 4
  31. #define PXA_SSP_CLK_AUDIO_DIV_32 5
  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. #define PXA_SSP_PLL_OUT 0
  37. #endif