Commit a1ffd9e2e634b5d573210d8ae0081d325f919c6d
Committed by
Stefano Babic
1 parent
03073a6665
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
arch/arm/include/asm/mach-imx/mxc_i2c.h
... | ... | @@ -88,8 +88,7 @@ |
88 | 88 | |
89 | 89 | |
90 | 90 | #define I2C_PADS_INFO(name) \ |
91 | - (is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D)) ? \ | |
92 | - &mx6q_##name : &mx6s_##name | |
91 | + (is_mx6dq() || is_mx6dqp()) ? &mx6q_##name : &mx6s_##name | |
93 | 92 | #endif |
94 | 93 | |
95 | 94 | int setup_i2c(unsigned i2c_index, int speed, int slave_addr, |