msp.h 577 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2010
  3. *
  4. * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
  5. * License terms: GNU General Public License (GPL), version 2.
  6. */
  7. #ifndef __MSP_H
  8. #define __MSP_H
  9. #include <plat/ste_dma40.h>
  10. enum msp_i2s_id {
  11. MSP_I2S_0 = 0,
  12. MSP_I2S_1,
  13. MSP_I2S_2,
  14. MSP_I2S_3,
  15. };
  16. /* Platform data structure for a MSP I2S-device */
  17. struct msp_i2s_platform_data {
  18. enum msp_i2s_id id;
  19. struct stedma40_chan_cfg *msp_i2s_dma_rx;
  20. struct stedma40_chan_cfg *msp_i2s_dma_tx;
  21. int (*msp_i2s_init) (void);
  22. int (*msp_i2s_exit) (void);
  23. };
  24. #endif