12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /* Copyright (c) 2015-2017, 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 */
|