gpio-msm-common.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Copyright (c) 2012, The Linux Foundation. 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. extern int msm_show_resume_irq_mask;
  15. unsigned __msm_gpio_get_inout(unsigned gpio);
  16. void __msm_gpio_set_inout(unsigned gpio, unsigned val);
  17. void __msm_gpio_set_config_direction(unsigned gpio, int input, int val);
  18. unsigned __msm_gpio_get_inout_no_log(unsigned gpio);
  19. void __msm_gpio_set_inout_no_log(unsigned gpio, unsigned val);
  20. void __msm_gpio_set_config_direction_no_log(unsigned gpio, int input, int val);
  21. void __msm_gpio_set_polarity(unsigned gpio, unsigned val);
  22. unsigned __msm_gpio_get_intr_status(unsigned gpio);
  23. void __msm_gpio_set_intr_status(unsigned gpio);
  24. unsigned __msm_gpio_get_intr_config(unsigned gpio);
  25. unsigned __msm_gpio_get_intr_cfg_enable(unsigned gpio);
  26. void __msm_gpio_set_intr_cfg_enable(unsigned gpio, unsigned val);
  27. void __msm_gpio_set_intr_cfg_type(unsigned gpio, unsigned type);
  28. void __gpio_tlmm_config(unsigned config);
  29. void __msm_gpio_install_direct_irq(unsigned gpio, unsigned irq,
  30. unsigned int input_polarity);
  31. #endif