pinmux.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Internal interface between the core pin control system and the
  3. * pinmux portions
  4. *
  5. * Copyright (C) 2011 ST-Ericsson SA
  6. * Written on behalf of Linaro for ST-Ericsson
  7. * Based on bits of regulator core, gpio core and clk core
  8. *
  9. * Author: Linus Walleij <linus.walleij@linaro.org>
  10. *
  11. * License terms: GNU General Public License (GPL) version 2
  12. */
  13. #ifdef CONFIG_PINMUX
  14. int pinmux_check_ops(const struct pinmux_ops *ops);
  15. void pinmux_init_device_debugfs(struct dentry *devroot,
  16. struct pinctrl_dev *pctldev);
  17. void pinmux_init_debugfs(struct dentry *subsys_root);
  18. int pinmux_hog_maps(struct pinctrl_dev *pctldev);
  19. void pinmux_unhog_maps(struct pinctrl_dev *pctldev);
  20. #else
  21. static inline int pinmux_check_ops(const struct pinmux_ops *ops)
  22. {
  23. return 0;
  24. }
  25. static inline void pinmux_init_device_debugfs(struct dentry *devroot,
  26. struct pinctrl_dev *pctldev)
  27. {
  28. }
  29. static inline void pinmux_init_debugfs(struct dentry *subsys_root)
  30. {
  31. }
  32. static inline int pinmux_hog_maps(struct pinctrl_dev *pctldev)
  33. {
  34. return 0;
  35. }
  36. static inline void pinmux_unhog_maps(struct pinctrl_dev *pctldev)
  37. {
  38. }
  39. #endif