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)
committerMark Brown <broonie@linaro.org>
Fri, 4 Apr 2014 15:20:06 +0000 (16:20 +0100)
commitfd08eab34aaf6f8ea441ee7c59c9e9771aa1e5e0
tree62d362838daf21bb3f476da025d1b52417790bff
parent5a585d47f797d7e5f8a3f79842f9c50115b870c3
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>
(cherry picked from commit 7970cb770dffa23cb20a36f46602e688e075f5d9)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h