pintcrl: mtk: support bias-disable of generic and special pins simultaneously
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Thu, 22 Mar 2018 02:58:42 +0000 (10:58 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Mar 2018 08:56:54 +0000 (10:56 +0200)
commit6af8df4c670a19158182e9f55fc0decb1cf8baa6
tree172139ead53e614196eb30e46f5c3cc0c91c6afb
parent8670710ff8feda2183474f5e0e9cbb4071761e47
pintcrl: mtk: support bias-disable of generic and special pins simultaneously

For generic pins, parameter "arg" is 0 or 1.
For special pins, bias-disable is set by R0R1,
so we need transmited "00" to set bias-disable
When we set "bias-disable" as high-z property,
the parameter should be "MTK_PUPD_SET_R1R0_00".

Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Reviewed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c