mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Alexander Kurz <akurz@blala.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM i.MX31: Add i2c register convenience functions
Date: Wed, 3 Aug 2016 07:28:37 +0200	[thread overview]
Message-ID: <20160803052837.GD20657@pengutronix.de> (raw)
In-Reply-To: <1469631172-27342-1-git-send-email-akurz@blala.de>

On Wed, Jul 27, 2016 at 04:52:52PM +0200, Alexander Kurz wrote:
> Signed-off-by: Alexander Kurz <akurz@blala.de>
> ---
>  arch/arm/mach-imx/include/mach/devices-imx31.h | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/include/mach/devices-imx31.h b/arch/arm/mach-imx/include/mach/devices-imx31.h
> index 63319fe..8169b98 100644
> --- a/arch/arm/mach-imx/include/mach/devices-imx31.h
> +++ b/arch/arm/mach-imx/include/mach/devices-imx31.h
> @@ -2,6 +2,21 @@
>  #include <mach/imx31-regs.h>
>  #include <mach/devices.h>
>  
> +static inline struct device_d *imx31_add_i2c0(void *pdata)
> +{
> +	return imx_add_i2c((void *)MX31_I2C1_BASE_ADDR, 0, pdata);
> +}
> +
> +static inline struct device_d *imx31_add_i2c1(void *pdata)
> +{
> +	return imx_add_i2c((void *)MX31_I2C2_BASE_ADDR, 1, pdata);
> +}
> +
> +static inline struct device_d *imx31_add_i2c2(void *pdata)
> +{
> +	return imx_add_i2c((void *)MX31_I2C3_BASE_ADDR, 2, pdata);
> +}
> +
>  static inline struct device_d *imx31_add_spi0(struct spi_imx_master *pdata)
>  {
>  	return imx_add_spi_imx27((void *)MX31_CSPI1_BASE_ADDR, 0, pdata);
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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

      reply	other threads:[~2016-08-03  5:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27 14:52 Alexander Kurz
2016-08-03  5:28 ` 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=20160803052837.GD20657@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=akurz@blala.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