]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/platform_data/asoc-ti-mcbsp.h
Merge branch 'stable-3.14' of git://git.infradead.org/users/pcmoore/selinux into...
[mirror_ubuntu-artful-kernel.git] / include / linux / platform_data / asoc-ti-mcbsp.h
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
25 #include <linux/spinlock.h>
26 #include <linux/clk.h>
27
28 #define MCBSP_CONFIG_TYPE2 0x2
29 #define MCBSP_CONFIG_TYPE3 0x3
30 #define MCBSP_CONFIG_TYPE4 0x4
31
32 /* Platform specific configuration */
33 struct omap_mcbsp_ops {
34 void (*request)(unsigned int);
35 void (*free)(unsigned int);
36 };
37
38 struct omap_mcbsp_platform_data {
39 struct omap_mcbsp_ops *ops;
40 u16 buffer_size;
41 u8 reg_size;
42 u8 reg_step;
43
44 /* McBSP platform and instance specific features */
45 bool has_wakeup; /* Wakeup capability */
46 bool has_ccr; /* Transceiver has configuration control registers */
47 int (*enable_st_clock)(unsigned int, bool);
48 };
49
50 /**
51 * omap_mcbsp_dev_attr - OMAP McBSP device attributes for omap_hwmod
52 * @sidetone: name of the sidetone device
53 */
54 struct omap_mcbsp_dev_attr {
55 const char *sidetone;
56 };
57
58 #endif