blob: b1590ef9d07b45460a08f377d2ffc4ba58762351 [file] [log] [blame]
Sathish Ambleyd2ad0fa2012-03-23 11:23:47 -07001/* 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
15extern int msm_show_resume_irq_mask;
16
17unsigned __msm_gpio_get_inout(unsigned gpio);
18void __msm_gpio_set_inout(unsigned gpio, unsigned val);
19void __msm_gpio_set_config_direction(unsigned gpio, int input, int val);
20void __msm_gpio_set_polarity(unsigned gpio, unsigned val);
21unsigned __msm_gpio_get_intr_status(unsigned gpio);
22void __msm_gpio_set_intr_status(unsigned gpio);
23unsigned __msm_gpio_get_intr_config(unsigned gpio);
Rohit Vaswanif4f36582012-08-28 11:49:11 -070024unsigned __msm_gpio_get_intr_cfg_enable(unsigned gpio);
Sathish Ambleyd2ad0fa2012-03-23 11:23:47 -070025void __msm_gpio_set_intr_cfg_enable(unsigned gpio, unsigned val);
26void __msm_gpio_set_intr_cfg_type(unsigned gpio, unsigned type);
27void __gpio_tlmm_config(unsigned config);
28void __msm_gpio_install_direct_irq(unsigned gpio, unsigned irq,
29 unsigned int input_polarity);
30#endif