summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEran Matityahu <eran.m@variscite.com>2018-01-26 16:11:37 +0200
committerStefano Babic <sbabic@denx.de>2018-02-04 12:14:11 +0100
commita1ffd9e2e634b5d573210d8ae0081d325f919c6d (patch)
tree884877fc050718932e339c17311663c0493cfa33
parent03073a666513b31c3ed106c3d19f4ea692e3c946 (diff)
downloadu-boot-a1ffd9e2e634b5d573210d8ae0081d325f919c6d.tar.gz
u-boot-a1ffd9e2e634b5d573210d8ae0081d325f919c6d.tar.bz2
u-boot-a1ffd9e2e634b5d573210d8ae0081d325f919c6d.zip
i2c: imx: Take mx6dqp in consideration in the I2C_PADS_INFO macro
We should take the MX6DP and MX6QP options in consideration in the I2C_PADS_INFO macro. Based on a patch by Pierluigi Passaro <pierluigi.p@variscite.com> Signed-off-by: Eran Matityahu <eran.m@variscite.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
-rw-r--r--arch/arm/include/asm/mach-imx/mxc_i2c.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/include/asm/mach-imx/mxc_i2c.h b/arch/arm/include/asm/mach-imx/mxc_i2c.h
index 292bf0cf7c..80018e4a14 100644
--- a/arch/arm/include/asm/mach-imx/mxc_i2c.h
+++ b/arch/arm/include/asm/mach-imx/mxc_i2c.h
@@ -88,8 +88,7 @@ struct mxc_i2c_bus {
#define I2C_PADS_INFO(name) \
- (is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D)) ? \
- &mx6q_##name : &mx6s_##name
+ (is_mx6dq() || is_mx6dqp()) ? &mx6q_##name : &mx6s_##name
#endif
int setup_i2c(unsigned i2c_index, int speed, int slave_addr,