From 7f7d66b7653f3a72548ba247099717a531c0c0e7 Mon Sep 17 00:00:00 2001 From: Robin Gong Date: Fri, 8 Aug 2014 18:35:07 +0800 Subject: ENGR00326448: mx6slevk: I2C: correct scl/sda define Correct the wrong setting, otherwise, i2c recovery code will use the wrong scl pin to recove, and will never recovery successfully. Signed-off-by: Robin Gong (cherry picked from commit c3e9e81a4c6ae7306c273cbe4b5d96ef44222711) --- board/freescale/mx6slevk/mx6slevk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/freescale/mx6slevk') diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 1f24f03..0fb22dc 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -69,12 +69,12 @@ DECLARE_GLOBAL_DATA_PTR; #define PC MUX_PAD_CTRL(I2C_PAD_CTRL) /* I2C1 for PMIC */ struct i2c_pads_info i2c_pad_info0 = { - .scl = { + .sda = { .i2c_mode = MX6_PAD_I2C1_SDA__I2C1_SDA | PC, .gpio_mode = MX6_PAD_I2C1_SDA__GPIO_3_13 | PC, .gp = IMX_GPIO_NR(3, 13), }, - .sda = { + .scl = { .i2c_mode = MX6_PAD_I2C1_SCL__I2C1_SCL | PC, .gpio_mode = MX6_PAD_I2C1_SCL__GPIO_3_12 | PC, .gp = IMX_GPIO_NR(3, 12), -- cgit v1.1