blob: 73eeaff39bfd50cfe956227fce66b753698c12db (
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
42
43
|
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __MSM_AUDIO_PINCTRL_H
#define __MSM_AUDIO_PINCTRL_H
enum pinctrl_client {
CLIENT_WCD,
CLIENT_WSA_BONGO_1,
CLIENT_WSA_BONGO_2,
MAX_PINCTRL_CLIENT,
};
/* finds the index for the gpio set in the dtsi file */
int msm_get_gpioset_index(enum pinctrl_client client, char *keyword);
/*
* this function reads the following from dtsi file
* 1. all gpio sets
* 2. all combinations of gpio sets
* 3. pinctrl handles to gpio sets
*
* returns error if there is
* 1. problem reading from dtsi file
* 2. memory allocation failure
*/
int msm_gpioset_initialize(enum pinctrl_client client, struct device *dev);
int msm_gpioset_activate(enum pinctrl_client client, char *keyword);
int msm_gpioset_suspend(enum pinctrl_client client, char *keyword);
#endif /* __MSM_AUDIO_PINCTRL_H */
|