Skip to contentSkip to conversation

i2c: imx: Take mx6dqp in consideration in the I2C_PADS_INFO macro

PATCH New Eran Matityahu 2 participants 2 messages Jan 26, 2018 – Jan 31, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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 <[email protected]>

---
 arch/arm/include/asm/mach-imx/mxc_i2c.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/include/asm/mach-imx/mxc_i2c.h +1 -2
index 292bf0c..80018e4 100644
@@ -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,
Signature · 1 line
1.9.1