[0/3] Add support for different mediatek pinctrl designs

Sam Shih sam.shih at mediatek.com
Thu Mar 10 05:31:42 CET 2022


MediaTek SoC's pinconf register usage varies by SoC,
So the original code uses V0/V1 to mark different pinconf design.
But actually, the real difference is the design of the "pin" itself.

Different SoCs will choose specify "pin design", which we call the
"io_type" of the pin.

For a better understanding of mediatek pinctrl design. and make the
driver clear and flexible, this patch series changes common parts
of mediatek pinctrl driver to support various pinctrl controller
designs.


Sam Shih (3):
  pinctrl: mediatek: rewrite mtk_pinconf_set and related functions
  pinctrl: mediatek: introduce multiple memory bases support
  pinctrl: mediatek: add support for different types of IO pins

 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 217 ++++++++++++++----
 drivers/pinctrl/mediatek/pinctrl-mtk-common.h |  79 ++++++-
 2 files changed, 243 insertions(+), 53 deletions(-)

-- 
2.29.2



More information about the U-Boot mailing list