]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: GPIO direction support for muxing
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Nov 2011 09:06:22 +0000 (10:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Nov 2011 11:58:10 +0000 (12:58 +0100)
commit24118d0b9d658796720251fa20f0513e77f38f8e
treebd73f1ae525c180549bd4bb81fbd6613677b9d73
parent1ab2447cfeb6fab33762fccc1158bfbad82d1f15
pinctrl: GPIO direction support for muxing

When requesting a single GPIO pin to be muxed in, some controllers
will need to poke a different value into the control register
depending on whether the pin will be used for GPIO output or GPIO
input. So create pinmux counterparts to gpio_direction_[input|output]
in the pinctrl framework.

ChangeLog v1->v2:
- This also amends the documentation to make it clear the this
  function and associated machinery is *ONLY* intended as a backend
  to gpiolib machinery, not for everyone and his dog to start playing
  around with pins.
ChangeLog v2->v3:
- Don't pass an argument to the common request function, instead
  provide pinmux_* counterparts to the gpio_direction_[input|output]
  calls, simpler and anyone can understand it.
ChangeLog v3->v4:
- Fix numerous spelling mistakes and dangling text in documentation.
  Add Ack and Rewewed-by.

Cc: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/pinmux.c
include/linux/pinctrl/pinmux.h