s3c24xx-i2s.h 725 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * s3c24xx-i2s.c -- ALSA Soc Audio Layer
  4. *
  5. * Copyright 2005 Wolfson Microelectronics PLC.
  6. * Author: Graeme Gregory
  7. * [email protected] or [email protected]
  8. *
  9. * Revision history
  10. * 10th Nov 2006 Initial version.
  11. */
  12. #ifndef S3C24XXI2S_H_
  13. #define S3C24XXI2S_H_
  14. /* clock sources */
  15. #define S3C24XX_CLKSRC_PCLK 0
  16. #define S3C24XX_CLKSRC_MPLL 1
  17. /* Clock dividers */
  18. #define S3C24XX_DIV_MCLK 0
  19. #define S3C24XX_DIV_BCLK 1
  20. #define S3C24XX_DIV_PRESCALER 2
  21. /* prescaler */
  22. #define S3C24XX_PRESCALE(a,b) \
  23. (((a - 1) << S3C2410_IISPSR_INTSHIFT) | ((b - 1) << S3C2410_IISPSR_EXTSHFIT))
  24. u32 s3c24xx_i2s_get_clockrate(void);
  25. #endif /*S3C24XXI2S_H_*/