Skip to content
Commit 9f940d8e authored by Fabien Parent's avatar Fabien Parent Committed by Linus Walleij
Browse files

pinctrl: mediatek: don't hardcode mode encoding in common code



MT8365 encode the pins mode differently than other
MTK pinctrl drivers that use the PINCTRL_MTK common code.

Add 3 new fields in mtk_pinctrl_devdata in order to store how
pin modes are encoded into the register. At the
same time update all the pinctrl driver that depends on
CONFIG_PINCTRL_MTK.

Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
Link: https://lore.kernel.org/r/20210519162409.3755679-2-fparent@baylibre.com
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8b4c397d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment