From: "Eric Bénard" <eric@eukrea.com>
To: barebox@lists.infradead.org
Subject: [PATCH 4/7] i.MX53: enable pull up on I2C0 pins
Date: Tue, 21 Feb 2012 01:27:36 +0100 [thread overview]
Message-ID: <1329784059-6006-4-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1329784059-6006-1-git-send-email-eric@eukrea.com>
this allows I2C to work on boards which don't have external pull up
(like LOCO board)
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
arch/arm/mach-imx/include/mach/iomux-mx53.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-imx/include/mach/iomux-mx53.h b/arch/arm/mach-imx/include/mach/iomux-mx53.h
index 527f8fe..ac94deb 100644
--- a/arch/arm/mach-imx/include/mach/iomux-mx53.h
+++ b/arch/arm/mach-imx/include/mach/iomux-mx53.h
@@ -30,7 +30,9 @@
#define MX53_SDHC_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PKE | PAD_CTL_PUE | \
PAD_CTL_PUS_47K_UP | PAD_CTL_DSE_HIGH | \
PAD_CTL_SRE_FAST)
-
+#define MX53_I2C_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PKE | PAD_CTL_PUE | \
+ PAD_CTL_PUS_22K_UP | PAD_CTL_DSE_HIGH | \
+ PAD_CTL_SRE_FAST)
#define MX53_PAD_GPIO_19__KPP_COL_5 IOMUX_PAD(0x348, 0x020, 0, 0x840, 0, NO_PAD_CTRL)
#define MX53_PAD_GPIO_19__GPIO4_5 IOMUX_PAD(0x348, 0x020, 1, __NA_, 0, NO_PAD_CTRL)
@@ -377,7 +379,7 @@
#define MX53_PAD_CSI0_DAT8__KPP_COL_7 IOMUX_PAD(0x40C, 0x0E0, 2, 0x848, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT8__ECSPI2_SCLK IOMUX_PAD(0x40C, 0x0E0, 3, 0x7B8, 1, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT8__USBOH3_USBH3_OC IOMUX_PAD(0x40C, 0x0E0, 4, __NA_, 0, NO_PAD_CTRL)
-#define MX53_PAD_CSI0_DAT8__I2C1_SDA IOMUX_PAD(0x40C, 0x0E0, 5 | IOMUX_CONFIG_SION, 0x818, 0, NO_PAD_CTRL)
+#define MX53_PAD_CSI0_DAT8__I2C1_SDA IOMUX_PAD(0x40C, 0x0E0, 5 | IOMUX_CONFIG_SION, 0x818, 0, MX53_I2C_PAD_CTRL)
#define MX53_PAD_CSI0_DAT8__EMI_EMI_DEBUG_37 IOMUX_PAD(0x40C, 0x0E0, 6, __NA_, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT8__TPIU_TRACE_5 IOMUX_PAD(0x40C, 0x0E0, 7, __NA_, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT9__IPU_CSI0_D_9 IOMUX_PAD(0x410, 0x0E4, 0, __NA_, 0, NO_PAD_CTRL)
@@ -385,7 +387,7 @@
#define MX53_PAD_CSI0_DAT9__KPP_ROW_7 IOMUX_PAD(0x410, 0x0E4, 2, 0x854, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT9__ECSPI2_MOSI IOMUX_PAD(0x410, 0x0E4, 3, 0x7C0, 1, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT9__USBOH3_USBH3_PWR IOMUX_PAD(0x410, 0x0E4, 4, __NA_, 0, NO_PAD_CTRL)
-#define MX53_PAD_CSI0_DAT9__I2C1_SCL IOMUX_PAD(0x410, 0x0E4, 5 | IOMUX_CONFIG_SION, 0x814, 0, NO_PAD_CTRL)
+#define MX53_PAD_CSI0_DAT9__I2C1_SCL IOMUX_PAD(0x410, 0x0E4, 5 | IOMUX_CONFIG_SION, 0x814, 0, MX53_I2C_PAD_CTRL)
#define MX53_PAD_CSI0_DAT9__EMI_EMI_DEBUG_38 IOMUX_PAD(0x410, 0x0E4, 6, __NA_, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT9__TPIU_TRACE_6 IOMUX_PAD(0x410, 0x0E4, 7, __NA_, 0, NO_PAD_CTRL)
#define MX53_PAD_CSI0_DAT10__IPU_CSI0_D_10 IOMUX_PAD(0x414, 0x0E8, 0, __NA_, 0, NO_PAD_CTRL)
--
1.7.7.6
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-02-21 0:27 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 ` [PATCH v2 5/7] mx53-loco: add i2c support Eric Bénard
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 ` Eric Bénard [this message]
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=1329784059-6006-4-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