xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / platform_data / asoc-ti-mcbsp.h
blobe684543254f3b69dc19a74c822a5af04bbc3debf
1 /*
2 * Defines for Multi-Channel Buffered Serial Port
4 * Copyright (C) 2002 RidgeRun, Inc.
5 * Author: Steve Johnson
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.
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.
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
22 #ifndef __ASOC_TI_MCBSP_H
23 #define __ASOC_TI_MCBSP_H
25 #include <linux/spinlock.h>
26 #include <linux/clk.h>
28 #define MCBSP_CONFIG_TYPE2 0x2
29 #define MCBSP_CONFIG_TYPE3 0x3
30 #define MCBSP_CONFIG_TYPE4 0x4
32 /* Platform specific configuration */
33 struct omap_mcbsp_ops {
34 void (*request)(unsigned int);
35 void (*free)(unsigned int);
38 struct omap_mcbsp_platform_data {
39 struct omap_mcbsp_ops *ops;
40 u16 buffer_size;
41 u8 reg_size;
42 u8 reg_step;
44 /* McBSP platform and instance specific features */
45 bool has_wakeup; /* Wakeup capability */
46 bool has_ccr; /* Transceiver has configuration control registers */
47 int (*force_ick_on)(struct clk *clk, bool force_on);
50 /**
51 * omap_mcbsp_dev_attr - OMAP McBSP device attributes for omap_hwmod
52 * @sidetone: name of the sidetone device
54 struct omap_mcbsp_dev_attr {
55 const char *sidetone;
58 void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata);
60 #endif