pinctrl: mediatek: add input-enable and direction setting for eint resources
authorBiao Huang <biao.huang@mediatek.com>
Tue, 16 Feb 2016 19:16:34 +0000 (03:16 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Feb 2016 23:30:22 +0000 (00:30 +0100)
commitb1c5b77035e086c9c3c8157dcc294a17e67a6ce0
treec33d14ebc2d60737c351a025dbb2baf1ad676d8d
parent31763d3b369c44159919ff2fbfafbb90613e1de2
pinctrl: mediatek: add input-enable and direction setting for eint resources

To use pin as eint, user should make sure that:
1. pin is set to right mode, this is done in .irq_request_resources
implementation already.
2. direction of the pin is input, which should call GPIO API to set
pin to input gpio.
We add what step 2 do to .irq_request_resources so that user doesn't
need call GPIO API any more when pin for eint usage.

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
This page took 0.024908 seconds and 5 git commands to generate.