pinctrl: mt8173: set GPIO16 to usb iddig mode
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 30 Nov 2016 02:21:31 +0000 (10:21 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Dec 2016 14:27:01 +0000 (15:27 +0100)
the default mode of GPIO16 pin is gpio, when set EINT16 to
IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be
fixed when set its default mode as usb iddig.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h

index 13e5b68bfe1b49716bddaa174467ea8bb686da32..9b018fdbeb51f4c4be4dfef9f06f56c4ef08338f 100644 (file)
@@ -201,7 +201,7 @@ static const struct mtk_desc_pin mtk_pins_mt8173[] = {
        MTK_PIN(
                PINCTRL_PIN(16, "IDDIG"),
                NULL, "mt8173",
-               MTK_EINT_FUNCTION(0, 16),
+               MTK_EINT_FUNCTION(1, 16),
                MTK_FUNCTION(0, "GPIO16"),
                MTK_FUNCTION(1, "IDDIG"),
                MTK_FUNCTION(2, "CMFLASH"),