mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: barebox@lists.infradead.org
Subject: [PATCH v2 5/7] mx53-loco: add i2c support
Date: Mon, 27 Feb 2012 09:20:11 +0100	[thread overview]
Message-ID: <1330330813-21605-5-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1330330813-21605-1-git-send-email-eric@eukrea.com>

and register mc34708 which is present on MCIMX53-START-R board

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 arch/arm/boards/freescale-mx53-loco/board.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boards/freescale-mx53-loco/board.c b/arch/arm/boards/freescale-mx53-loco/board.c
index dc930b6..66ff040 100644
--- a/arch/arm/boards/freescale-mx53-loco/board.c
+++ b/arch/arm/boards/freescale-mx53-loco/board.c
@@ -36,6 +36,9 @@
 #include <mach/iim.h>
 #include <mach/imx5.h>
 
+#include <i2c/i2c.h>
+#include <mfd/mc34708.h>
+
 #include <asm/armlinux.h>
 #include <io.h>
 #include <asm/mmu.h>
@@ -88,6 +91,16 @@ static struct pad_desc loco_pads[] = {
 	MX53_PAD_EIM_DA11__GPIO3_11,
 	/* SD3_WP */
 	MX53_PAD_EIM_DA12__GPIO3_12,
+
+	/* I2C0 */
+	MX53_PAD_CSI0_DAT8__I2C1_SDA,
+	MX53_PAD_CSI0_DAT9__I2C1_SCL,
+};
+
+static struct i2c_board_info i2c_devices[] = {
+	{
+		I2C_BOARD_INFO("mc34708-i2c", 0x08),
+	},
 };
 
 static int loco_mem_init(void)
@@ -131,6 +144,8 @@ static int loco_devices_init(void)
 	imx53_add_fec(&fec_info);
 	imx53_add_mmc0(&loco_sd1_data);
 	imx53_add_mmc2(&loco_sd3_data);
+	i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices));
+	imx53_add_i2c0(NULL);
 
 	loco_fec_reset();
 
-- 
1.7.7.6


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

  parent reply	other threads:[~2012-02-27  8:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21  0:27 [PATCH 1/7] add i2c clock support Eric Bénard
2012-02-21  0:27 ` [PATCH 2/7] mfd: add mc34708 driver Eric Bénard
2012-02-21  3:48   ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-21  7:03     ` Eric Bénard
2012-02-21 13:03       ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-21 13:22         ` Eric Bénard
2012-02-21 14:10           ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-21 15:35             ` Eric Bénard
2012-02-21 15:38               ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-21 20:45                 ` Sascha Hauer
2012-02-21 21:09                   ` Marc Reilly
2012-02-21  0:27 ` [PATCH 3/7] i.MX53: add silicn revision functions Eric Bénard
2012-02-22  7:33   ` Sascha Hauer
2012-02-27  8:20     ` [PATCH v2 1/7] add i2c clock support Eric Bénard
2012-02-27  8:20       ` [PATCH v2 2/7] mfd: add mc34708 driver Eric Bénard
2012-02-27  8:20       ` [PATCH v2 3/7] i.MX53: add silicon revision functions Eric Bénard
2012-02-27  8:20       ` [PATCH v2 4/7] i.MX53: enable pull up on I2C0 pins Eric Bénard
2012-02-27  8:20       ` Eric Bénard [this message]
2012-02-27  8:20       ` [PATCH v2 6/7] mx53-loco: add board revision support Eric Bénard
2012-02-27 15:40         ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-27 18:58           ` Sascha Hauer
2012-02-27  8:20       ` [PATCH v2 7/7] mx53-loco: update defconfig Eric Bénard
2012-02-27 18:59       ` [PATCH v2 1/7] add i2c clock support Sascha Hauer
2012-02-21  0:27 ` [PATCH 4/7] i.MX53: enable pull up on I2C0 pins Eric Bénard
2012-02-21  0:27 ` [PATCH 5/7] mx53-loco: add i2c support Eric Bénard
2012-02-21  0:27 ` [PATCH 6/7] mx53-loco: add board revision support Eric Bénard
2012-02-21  3:50   ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-21  0:27 ` [PATCH 7/7] mx53-loco: update defconfig Eric Bénard

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=1330330813-21605-5-git-send-email-eric@eukrea.com \
    --to=eric@eukrea.com \
    --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