]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: mediatek: add support for different types of IO pins
authorSam Shih <sam.shih@mediatek.com>
Thu, 21 Apr 2022 06:23:53 +0000 (14:23 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 13:29:58 +0000 (09:29 -0400)
commit1a80ef5520fc0751c5055d422810bf22c6c7e526
treebaf3bdf4680f9cf7c7e846b2207144794ce3e6d5
parent10334e0bc8884301466bbca9c474a8a580a3e7ee
pinctrl: mediatek: add support for different types of IO pins

There are many pins in an SoC, and register usage may vary by pins.
This patch introduces a concept of "io type" and "io type group"
to mediatek pinctrl drivers. This can provide different pinconf
handlers implementation (eg: "bias-pull-up/down", "driving" and
"input-enable") for IO pins that belong to different types.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h