]> git.baikalelectronics.ru Git - uboot.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)
commit544a632152df08954392342eb5e9c9e1674941eb
treebaf3bdf4680f9cf7c7e846b2207144794ce3e6d5
parent4394e2ec4b565831f562e4adecbf0d9af0a0e7e8
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