blob: db88d0ca5dec40ffcd4ba2f64dc68702fe699ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* Copyright (C) ST-Ericsson SA 2011
*
* Author: Ola Lilja <ola.o.lilja@stericsson.com>,
* for ST-Ericsson.
*
* License terms:
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef UX500_MSP_I2S_H
#define UX500_MSP_I2S_H
#include <linux/platform_device.h>
#include <mach/msp.h>
struct ux500_msp_i2s_drvdata {
int id;
struct msp *msp;
struct regulator *reg_vape;
};
struct ux500_msp_i2s_drvdata *ux500_msp_i2s_init(struct platform_device *pdev,
struct msp_i2s_platform_data *platform_data);
int ux500_msp_i2s_exit(struct ux500_msp_i2s_drvdata *drvdata);
int ux500_msp_i2s_open(struct ux500_msp_i2s_drvdata *drvdata, struct msp_config *msp_config);
int ux500_msp_i2s_close(struct ux500_msp_i2s_drvdata *drvdata, enum i2s_flag flag);
int ux500_msp_i2s_transfer(struct ux500_msp_i2s_drvdata *drvdata, struct i2s_message *message);
int ux500_msp_i2s_hw_status(struct ux500_msp_i2s_drvdata *drvdata);
dma_addr_t ux500_msp_i2s_get_pointer(struct ux500_msp_i2s_drvdata *drvdata,
enum i2s_direction_t i2s_direction);
int ux500_msp_i2s_suspend(struct ux500_msp_i2s_drvdata *drvdata);
int ux500_msp_i2s_resume(struct ux500_msp_i2s_drvdata *drvdata);
#endif
|