Sathish Ambley | d2ad0fa | 2012-03-23 11:23:47 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef __ARCH_ARM_MACH_MSM_GPIO_COMMON_H |
| 13 | #define __ARCH_ARM_MACH_MSM_GPIO_COMMON_H |
| 14 | |
| 15 | extern int msm_show_resume_irq_mask; |
| 16 | |
| 17 | unsigned __msm_gpio_get_inout(unsigned gpio); |
| 18 | void __msm_gpio_set_inout(unsigned gpio, unsigned val); |
| 19 | void __msm_gpio_set_config_direction(unsigned gpio, int input, int val); |
| 20 | void __msm_gpio_set_polarity(unsigned gpio, unsigned val); |
| 21 | unsigned __msm_gpio_get_intr_status(unsigned gpio); |
| 22 | void __msm_gpio_set_intr_status(unsigned gpio); |
| 23 | unsigned __msm_gpio_get_intr_config(unsigned gpio); |
Rohit Vaswani | f4f3658 | 2012-08-28 11:49:11 -0700 | [diff] [blame] | 24 | unsigned __msm_gpio_get_intr_cfg_enable(unsigned gpio); |
Sathish Ambley | d2ad0fa | 2012-03-23 11:23:47 -0700 | [diff] [blame] | 25 | void __msm_gpio_set_intr_cfg_enable(unsigned gpio, unsigned val); |
| 26 | void __msm_gpio_set_intr_cfg_type(unsigned gpio, unsigned type); |
| 27 | void __gpio_tlmm_config(unsigned config); |
| 28 | void __msm_gpio_install_direct_irq(unsigned gpio, unsigned irq, |
| 29 | unsigned int input_polarity); |
| 30 | #endif |