]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - include/linux/platform_data/asoc-ti-mcbsp.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
[mirror_ubuntu-jammy-kernel.git] / include / linux / platform_data / asoc-ti-mcbsp.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1da177e4 2/*
1da177e4
LT
3 * Defines for Multi-Channel Buffered Serial Port
4 *
5 * Copyright (C) 2002 RidgeRun, Inc.
6 * Author: Steve Johnson
1da177e4 7 */
8cb7a36e
SK
8#ifndef __ASOC_TI_MCBSP_H
9#define __ASOC_TI_MCBSP_H
1da177e4 10
bc5d0c89 11#include <linux/spinlock.h>
5167255c 12#include <linux/clk.h>
1da177e4 13
bc5d0c89
EV
14/* Platform specific configuration */
15struct omap_mcbsp_ops {
16 void (*request)(unsigned int);
17 void (*free)(unsigned int);
bc5d0c89
EV
18};
19
20struct omap_mcbsp_platform_data {
bc5d0c89 21 struct omap_mcbsp_ops *ops;
64bcbd33 22 u16 buffer_size;
cdc71514
JN
23 u8 reg_size;
24 u8 reg_step;
1a645884
JN
25
26 /* McBSP platform and instance specific features */
27 bool has_wakeup; /* Wakeup capability */
88408230 28 bool has_ccr; /* Transceiver has configuration control registers */
53ae95f6 29 int (*force_ick_on)(struct clk *clk, bool force_on);
bc5d0c89
EV
30};
31
c26c84c9
PU
32void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata);
33
1da177e4 34#endif