Thomas Gleixner | 1a59d1b8 | 2019-05-27 08:55:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 2 | /* |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 3 | * Defines for Multi-Channel Buffered Serial Port |
| 4 | * |
| 5 | * Copyright (C) 2002 RidgeRun, Inc. |
| 6 | * Author: Steve Johnson |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 7 | */ |
Sachin Kamat | 8cb7a36 | 2013-12-30 10:37:48 +0530 | [diff] [blame] | 8 | #ifndef __ASOC_TI_MCBSP_H |
| 9 | #define __ASOC_TI_MCBSP_H |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 10 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 11 | #include <linux/spinlock.h> |
Jarkko Nikula | 5167255 | 2011-09-26 10:45:46 +0300 | [diff] [blame] | 12 | #include <linux/clk.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 13 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 14 | /* Platform specific configuration */ |
| 15 | struct omap_mcbsp_ops { |
| 16 | void (*request)(unsigned int); |
| 17 | void (*free)(unsigned int); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | struct omap_mcbsp_platform_data { |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 21 | struct omap_mcbsp_ops *ops; |
Kishon Vijay Abraham I | 64bcbd3 | 2011-02-24 15:16:52 +0530 | [diff] [blame] | 22 | u16 buffer_size; |
Jarkko Nikula | cdc71514 | 2011-09-26 10:45:39 +0300 | [diff] [blame] | 23 | u8 reg_size; |
| 24 | u8 reg_step; |
Jarkko Nikula | 1a64588 | 2011-09-26 10:45:40 +0300 | [diff] [blame] | 25 | |
| 26 | /* McBSP platform and instance specific features */ |
| 27 | bool has_wakeup; /* Wakeup capability */ |
Jarkko Nikula | 8840823 | 2011-09-26 10:45:41 +0300 | [diff] [blame] | 28 | bool has_ccr; /* Transceiver has configuration control registers */ |
Peter Ujfalusi | 53ae95f | 2016-05-30 11:23:46 +0300 | [diff] [blame] | 29 | int (*force_ick_on)(struct clk *clk, bool force_on); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
Peter Ujfalusi | c26c84c | 2016-05-30 11:23:47 +0300 | [diff] [blame] | 32 | void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata); |
| 33 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 34 | #endif |