Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Defines for Multi-Channel Buffered Serial Port
0004  *
0005  * Copyright (C) 2002 RidgeRun, Inc.
0006  * Author: Steve Johnson
0007  */
0008 #ifndef __ASOC_TI_MCBSP_H
0009 #define __ASOC_TI_MCBSP_H
0010 
0011 #include <linux/spinlock.h>
0012 #include <linux/clk.h>
0013 
0014 /* Platform specific configuration */
0015 struct omap_mcbsp_ops {
0016     void (*request)(unsigned int);
0017     void (*free)(unsigned int);
0018 };
0019 
0020 struct omap_mcbsp_platform_data {
0021     struct omap_mcbsp_ops *ops;
0022     u16 buffer_size;
0023     u8 reg_size;
0024     u8 reg_step;
0025 
0026     /* McBSP platform and instance specific features */
0027     bool has_wakeup; /* Wakeup capability */
0028     bool has_ccr; /* Transceiver has configuration control registers */
0029     int (*force_ick_on)(struct clk *clk, bool force_on);
0030 };
0031 
0032 void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata);
0033 
0034 #endif