Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
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 | */ | |
8cb7a36e SK |
22 | #ifndef __ASOC_TI_MCBSP_H |
23 | #define __ASOC_TI_MCBSP_H | |
1da177e4 | 24 | |
bc5d0c89 | 25 | #include <linux/spinlock.h> |
5167255c | 26 | #include <linux/clk.h> |
1da177e4 | 27 | |
37801b3d | 28 | #define MCBSP_CONFIG_TYPE2 0x2 |
dc48e5fc | 29 | #define MCBSP_CONFIG_TYPE3 0x3 |
cb7e9ded | 30 | #define MCBSP_CONFIG_TYPE4 0x4 |
37801b3d | 31 | |
bc5d0c89 EV |
32 | /* Platform specific configuration */ |
33 | struct omap_mcbsp_ops { | |
34 | void (*request)(unsigned int); | |
35 | void (*free)(unsigned int); | |
bc5d0c89 EV |
36 | }; |
37 | ||
38 | struct omap_mcbsp_platform_data { | |
bc5d0c89 | 39 | struct omap_mcbsp_ops *ops; |
64bcbd33 | 40 | u16 buffer_size; |
cdc71514 JN |
41 | u8 reg_size; |
42 | u8 reg_step; | |
1a645884 JN |
43 | |
44 | /* McBSP platform and instance specific features */ | |
45 | bool has_wakeup; /* Wakeup capability */ | |
88408230 | 46 | bool has_ccr; /* Transceiver has configuration control registers */ |
1743d14f | 47 | int (*enable_st_clock)(unsigned int, bool); |
bc5d0c89 EV |
48 | }; |
49 | ||
8b1906f1 KVA |
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 | ||
1da177e4 | 58 | #endif |