asoc-ti-mcbsp.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Defines for Multi-Channel Buffered Serial Port
  3. *
  4. * Copyright (C) 2002 RidgeRun, Inc.
  5. * Author: Steve Johnson
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. */
  22. #ifndef __ASOC_TI_MCBSP_H
  23. #define __ASOC_TI_MCBSP_H
  24. #include <linux/spinlock.h>
  25. #include <linux/clk.h>
  26. #define MCBSP_CONFIG_TYPE2 0x2
  27. #define MCBSP_CONFIG_TYPE3 0x3
  28. #define MCBSP_CONFIG_TYPE4 0x4
  29. /* Platform specific configuration */
  30. struct omap_mcbsp_ops {
  31. void (*request)(unsigned int);
  32. void (*free)(unsigned int);
  33. };
  34. struct omap_mcbsp_platform_data {
  35. struct omap_mcbsp_ops *ops;
  36. u16 buffer_size;
  37. u8 reg_size;
  38. u8 reg_step;
  39. /* McBSP platform and instance specific features */
  40. bool has_wakeup; /* Wakeup capability */
  41. bool has_ccr; /* Transceiver has configuration control registers */
  42. int (*enable_st_clock)(unsigned int, bool);
  43. };
  44. /**
  45. * omap_mcbsp_dev_attr - OMAP McBSP device attributes for omap_hwmod
  46. * @sidetone: name of the sidetone device
  47. */
  48. struct omap_mcbsp_dev_attr {
  49. const char *sidetone;
  50. };
  51. #endif