msm-cdc-pinctrl.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #ifndef __MFD_CDC_PINCTRL_H_
  5. #define __MFD_CDC_PINCTRL_H_
  6. #include <linux/types.h>
  7. #include <linux/of.h>
  8. #if IS_ENABLED(CONFIG_MSM_CDC_PINCTRL)
  9. extern int msm_cdc_pinctrl_select_sleep_state(struct device_node *np);
  10. extern int msm_cdc_pinctrl_select_active_state(struct device_node *np);
  11. extern int msm_cdc_pinctrl_get_state(struct device_node *np);
  12. extern int msm_cdc_get_gpio_state(struct device_node *np);
  13. extern int msm_cdc_pinctrl_set_wakeup_capable(struct device_node *np,
  14. bool enable);
  15. int msm_cdc_pinctrl_drv_init(void);
  16. void msm_cdc_pinctrl_drv_exit(void);
  17. #else
  18. int msm_cdc_pinctrl_select_sleep_state(struct device_node *np)
  19. {
  20. return 0;
  21. }
  22. int msm_cdc_pinctrl_select_active_state(struct device_node *np)
  23. {
  24. return 0;
  25. }
  26. int msm_cdc_get_gpio_state(struct device_node *np)
  27. {
  28. return 0;
  29. }
  30. int msm_cdc_pinctrl_drv_init(void)
  31. {
  32. return 0;
  33. }
  34. void msm_cdc_pinctrl_drv_exit(void)
  35. {
  36. }
  37. int msm_cdc_pinctrl_get_state(struct device_node *np)
  38. {
  39. return true;
  40. }
  41. static int msm_cdc_pinctrl_set_wakeup_capable(struct device_node *np,
  42. bool enable)
  43. {
  44. return 0;
  45. }
  46. #endif
  47. #endif