]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: add pinconf-generic define for a pin-default pull
authorHeiko Stübner <heiko@sntech.de>
Thu, 6 Jun 2013 14:44:25 +0000 (16:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:56:51 +0000 (11:56 +0200)
commit3d19acc8a4e298341e573cb8489edd77b5042aad
tree4a375606b2664a493719a636d06b1ca13dc4328e
parent9cfdeb130eb5f0750e6f14bd8392066dd5da4662
pinctrl: add pinconf-generic define for a pin-default pull

There exist controllers that don't support to set the pull to up or down
separately but instead automatically set the pull direction based on
embedded knowledge inside the controller, for example depending on the
selected mux function of the pin.

Therefore this patch adds another config option to use this default
pull-state for a pin where it is not possible to know or decide if the
pin will be pulled up or down.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h