pinctrl: mediatek: add mtk_pctrl_spec_pull_set_samereg common code
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Tue, 19 May 2015 06:11:15 +0000 (23:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 19 May 2015 09:13:51 +0000 (11:13 +0200)
commite73fe2713fc9e8ab8d2d039abc48f7684b60f5ac
tree69cf94dbda42e8a3a9a936e780de44afceaa0011
parent4b9b5268460cbc85270b309559b8f3f48295709a
pinctrl: mediatek: add mtk_pctrl_spec_pull_set_samereg common code

Several mediatek soc use similar pull setting procedure as mt8173,
the pupd enable and resistance setting are in the same register.
Add common code mtk_pctrl_spec_pull_set_samereg out of spec_pull_set
in mt8173 to handle this case, so future soc driver can use it.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8173.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h