davinci-mcasp.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * ALSA SoC McASP Audio Layer for TI DAVINCI processor
  3. *
  4. * MCASP related definitions
  5. *
  6. * Author: Nirmal Pandey <n-pandey@ti.com>,
  7. * Suresh Rajashekara <suresh.r@ti.com>
  8. * Steve Chen <schen@.mvista.com>
  9. *
  10. * Copyright: (C) 2009 MontaVista Software, Inc., <source@mvista.com>
  11. * Copyright: (C) 2009 Texas Instruments, India
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License version 2 as
  15. * published by the Free Software Foundation.
  16. */
  17. #ifndef DAVINCI_MCASP_H
  18. #define DAVINCI_MCASP_H
  19. #include <linux/io.h>
  20. #include <linux/platform_data/davinci_asp.h>
  21. #include "davinci-pcm.h"
  22. #define DAVINCI_MCASP_RATES SNDRV_PCM_RATE_8000_192000
  23. #define DAVINCI_MCASP_I2S_DAI 0
  24. #define DAVINCI_MCASP_DIT_DAI 1
  25. struct davinci_audio_dev {
  26. struct davinci_pcm_dma_params dma_params[2];
  27. void __iomem *base;
  28. struct device *dev;
  29. /* McASP specific data */
  30. int tdm_slots;
  31. u8 op_mode;
  32. u8 num_serializer;
  33. u8 *serial_dir;
  34. u8 version;
  35. /* McASP FIFO related */
  36. u8 txnumevt;
  37. u8 rxnumevt;
  38. };
  39. #endif /* DAVINCI_MCASP_H */