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)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Nov 2013 04:37:29 +0000 (12:37 +0800)
commitdc03e310a6ae274d7b941c52899dffeeb58d464f
treedf1b07c47cf40448321451e3d73ffe4409caa69a
parent77a41c0a0da16ae8efcc385159ad6e611f09892c
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