[PATCH v2 13/21] gpio: mxc_gpio: add support for i.MXRT1050

Lukasz Majewski
2020-01-28T08:27:53Z

On Fri, 10 Jan 2020 15:47:03 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Add i.MXRT1050 support, there are 5 GPIO banks.
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
> * introduced this patch
> ---
> drivers/gpio/mxc_gpio.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
> index 6592d141d3..c924e52f07 100644
> --- a/drivers/gpio/mxc_gpio.c
> +++ b/drivers/gpio/mxc_gpio.c
> @@ -41,14 +41,15 @@ static unsigned long gpio_ports[] = {
> #if defined(CONFIG_MX25) || defined(CONFIG_MX27) ||
> defined(CONFIG_MX51) || \ defined(CONFIG_MX53) || defined(CONFIG_MX6)
> || \ defined(CONFIG_MX7) || defined(CONFIG_IMX8M) || \
> - defined(CONFIG_ARCH_IMX8)
> + defined(CONFIG_ARCH_IMX8) ||
> defined(CONFIG_IMXRT1050) [3] = GPIO4_BASE_ADDR,
> #endif
> #if defined(CONFIG_MX27) || defined(CONFIG_MX53) ||
> defined(CONFIG_MX6) || \ defined(CONFIG_MX7) || defined(CONFIG_IMX8M)
> || \
> - defined(CONFIG_ARCH_IMX8)
> + defined(CONFIG_ARCH_IMX8) ||
> defined(CONFIG_IMXRT1050) [4] = GPIO5_BASE_ADDR,
> -#if !(defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL) ||
> defined(CONFIG_IMX8M)) +#if !(defined(CONFIG_MX6UL) ||
> defined(CONFIG_MX6ULL) || \
> + defined(CONFIG_IMX8M) || defined(CONFIG_IMXRT1050))
> [5] = GPIO6_BASE_ADDR,
> #endif
> #endif

Reviewed-by: Lukasz Majewski <lukma@denx.de>

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200128/c64183f0/attachment.sig>