mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 19:56:43 +07:00
d6ed935513
Add support for pinctrl on MT7622 SoC. The IO core found on the SoC has the registers for pinctrl, pinconf and gpio mixed up in the same register range. However, the IO core for the MT7622 SoC is completely distinct from anyone of previous MediaTek SoCs which already had support, such as the hardware internal, register address map and register detailed definition for each pin. Therefore, instead, the driver is being newly implemented by reusing generic methods provided from the core layer with GENERIC_PINCONF, GENERIC_PINCTRL_GROUPS, and GENERIC_PINMUX_FUNCTIONS for the sake of code simplicity and rid of superfluous code. Where the function of pins determined by groups is utilized in this driver which can help developers less confused with what combinations of pins effective on the SoC and even reducing the mistakes during the integration of those relevant boards. As the gpio_chip handling is also only a few lines, the driver also implements the gpio functionality directly through GPIOLIB. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Reviewed-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-mt2701.c | ||
pinctrl-mt6397.c | ||
pinctrl-mt7622.c | ||
pinctrl-mt8127.c | ||
pinctrl-mt8135.c | ||
pinctrl-mt8173.c | ||
pinctrl-mtk-common.c | ||
pinctrl-mtk-common.h | ||
pinctrl-mtk-mt2701.h | ||
pinctrl-mtk-mt6397.h | ||
pinctrl-mtk-mt8127.h | ||
pinctrl-mtk-mt8135.h | ||
pinctrl-mtk-mt8173.h |