mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] ARM: i.MX: add low level gpio helpers for i.MX8M
Date: Mon, 7 Dec 2020 10:42:26 +0100	[thread overview]
Message-ID: <20201207094226.GJ3977@pengutronix.de> (raw)
In-Reply-To: <20201204174045.27340-1-a.fatoum@pengutronix.de>

On Fri, Dec 04, 2020 at 06:40:44PM +0100, Ahmad Fatoum wrote:
> Like many GPIO controllers of times past, the i.MX8M is also compatible
> with the i.MX31 GPIO controller. Add GPIO helpers for low-level code to
> use.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  arch/arm/mach-imx/include/mach/imx-gpio.h | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/include/mach/imx-gpio.h b/arch/arm/mach-imx/include/mach/imx-gpio.h
> index 891c33a3f411..0cfd16f4fa43 100644
> --- a/arch/arm/mach-imx/include/mach/imx-gpio.h
> +++ b/arch/arm/mach-imx/include/mach/imx-gpio.h
> @@ -50,6 +50,7 @@ static inline void imx31_gpio_direction_output(void *base, int gpio, int value)
>  #define imx51_gpio_direction_output(base, gpio, value) imx31_gpio_direction_output(base, gpio,value)
>  #define imx53_gpio_direction_output(base, gpio, value) imx31_gpio_direction_output(base, gpio,value)
>  #define imx6_gpio_direction_output(base, gpio, value) imx31_gpio_direction_output(base, gpio,value)
> +#define imx8m_gpio_direction_output(base, gpio, value) imx31_gpio_direction_output(base, gpio,value)
>  
>  static inline void imx1_gpio_direction_input(void *base, int gpio, int value)
>  {
> @@ -69,6 +70,7 @@ static inline void imx31_gpio_direction_input(void *base, int gpio)
>  #define imx51_gpio_direction_input(base, gpio, value) imx31_gpio_direction_input(base, gpio)
>  #define imx53_gpio_direction_input(base, gpio, value) imx31_gpio_direction_input(base, gpio)
>  #define imx6_gpio_direction_input(base, gpio) imx31_gpio_direction_input(base, gpio)
> +#define imx8m_gpio_direction_input(base, gpio) imx31_gpio_direction_input(base, gpio)
>  
>  #define imx1_gpio_val(base, gpio) readl(base + 0x1c) & (1 << gpio) ? 1 : 0
>  #define imx21_gpio_val(base, gpio) imx1_gpio_val(base, gpio)
> @@ -80,5 +82,6 @@ static inline void imx31_gpio_direction_input(void *base, int gpio)
>  #define imx51_gpio_val(base, gpio) imx31_gpio_val(base, gpio)
>  #define imx53_gpio_val(base, gpio) imx31_gpio_val(base, gpio)
>  #define imx6_gpio_val(base, gpio) imx31_gpio_val(base, gpio)
> +#define imx8m_gpio_val(base, gpio) imx31_gpio_val(base, gpio)
>  
>  #endif /* __MACH_IMX_GPIO_H */
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2020-12-07  9:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 17:40 Ahmad Fatoum
2020-12-04 17:40 ` [PATCH 2/2] ARM: i.MX8M: bbu: rename imx8mq_bbu_* functions to imx8m_bbu_* Ahmad Fatoum
2020-12-07  9:42 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201207094226.GJ3977@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox