summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2012-03-22 20:29:14 +0800
committerFugang Duan <B38611@freescale.com>2012-03-22 20:29:59 +0800
commit3df4b117b5c07210ee490aa82f1ea976019b6d6c (patch)
tree5009b4c6cf8511bd20b1dad036fae4468311ec3b /board/freescale
parent10e65e82a534afdc4f33330f26a8d72091064844 (diff)
downloadu-boot-imx-3df4b117b5c07210ee490aa82f1ea976019b6d6c.zip
u-boot-imx-3df4b117b5c07210ee490aa82f1ea976019b6d6c.tar.gz
u-boot-imx-3df4b117b5c07210ee490aa82f1ea976019b6d6c.tar.bz2
ENGR00176837-2 - imx6 sabreauto : add i2c3 support for revb board.
- Add i2c3_SDA iomux config for the change of signal traces. Signed-off-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6q_sabreauto/mx6q_sabreauto.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
index ffa3ce1..243fecb 100644
--- a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
+++ b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
@@ -330,14 +330,18 @@ static void setup_i2c(unsigned int module_base)
/* GPIO_3 for I2C3_SCL */
mxc_iomux_v3_setup_pad(MX6Q_PAD_GPIO_3__I2C3_SCL);
- /* GPIO_16 for I2C3_SDA */
- mxc_iomux_v3_setup_pad(MX6Q_PAD_GPIO_16__I2C3_SDA);
+ if (mx6_board_is_reva()) /* GPIO_16 for I2C3_SDA */
+ mxc_iomux_v3_setup_pad(MX6Q_PAD_GPIO_16__I2C3_SDA);
+ else
+ mxc_iomux_v3_setup_pad(MX6Q_PAD_EIM_D18__I2C3_SDA);
#elif defined CONFIG_MX6DL
/* GPIO_3 for I2C3_SCL */
mxc_iomux_v3_setup_pad(MX6DL_PAD_GPIO_3__I2C3_SCL);
- /* GPIO_16 for I2C3_SDA */
- mxc_iomux_v3_setup_pad(MX6DL_PAD_GPIO_16__I2C3_SDA);
+ if (mx6_board_is_reva()) /* GPIO_16 for I2C3_SDA */
+ mxc_iomux_v3_setup_pad(MX6DL_PAD_GPIO_16__I2C3_SDA);
+ else
+ mxc_iomux_v3_setup_pad(MX6DL_PAD_EIM_D18__I2C3_SDA);
#endif
/* Enable i2c clock */
reg = readl(CCM_BASE_ADDR + CLKCTL_CCGR2);