asoc-ti-mcbsp.h 820 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Defines for Multi-Channel Buffered Serial Port
  4. *
  5. * Copyright (C) 2002 RidgeRun, Inc.
  6. * Author: Steve Johnson
  7. */
  8. #ifndef __ASOC_TI_MCBSP_H
  9. #define __ASOC_TI_MCBSP_H
  10. #include <linux/spinlock.h>
  11. #include <linux/clk.h>
  12. /* Platform specific configuration */
  13. struct omap_mcbsp_ops {
  14. void (*request)(unsigned int);
  15. void (*free)(unsigned int);
  16. };
  17. struct omap_mcbsp_platform_data {
  18. struct omap_mcbsp_ops *ops;
  19. u16 buffer_size;
  20. u8 reg_size;
  21. u8 reg_step;
  22. /* McBSP platform and instance specific features */
  23. bool has_wakeup; /* Wakeup capability */
  24. bool has_ccr; /* Transceiver has configuration control registers */
  25. int (*force_ick_on)(struct clk *clk, bool force_on);
  26. };
  27. void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata);
  28. #endif