[U-Boot] [PATCH v3 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

Simon Glass sjg at chromium.org
Sat Nov 3 06:08:59 UTC 2018


On 2 November 2018 at 09:15, Ryder Lee <ryder.lee at mediatek.com> wrote:
> This patch adds pinctrl support for MT7629 SoC. The IO core found on
> the SoC has the registers for pinctrl, pinconf and gpio mixed up in
> the same register range.  Hence the driver also implements the gpio
> functionality through UCLASS_GPIO.
>
> This also creates a common file as there might be other chips that use
> the same binding and driver, then being a little more abstract could
> help in the long run.
>
> Signed-off-by: Ryder Lee <ryder.lee at mediatek.com>
> ---
>  arch/arm/include/asm/arch-mediatek/gpio.h     |   9 +
>  drivers/pinctrl/Kconfig                       |   1 +
>  drivers/pinctrl/Makefile                      |   1 +
>  drivers/pinctrl/mediatek/Kconfig              |  11 +
>  drivers/pinctrl/mediatek/Makefile             |   6 +
>  drivers/pinctrl/mediatek/pinctrl-mt7629.c     | 471 ++++++++++++++++++++++
>  drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 552 ++++++++++++++++++++++++++
>  drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 182 +++++++++
>  8 files changed, 1233 insertions(+)
>  create mode 100644 arch/arm/include/asm/arch-mediatek/gpio.h
>  create mode 100644 drivers/pinctrl/mediatek/Kconfig
>  create mode 100644 drivers/pinctrl/mediatek/Makefile
>  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7629.c
>  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common.c
>  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list