projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03073a6
)
i2c: imx: Take mx6dqp in consideration in the I2C_PADS_INFO macro
author
Eran Matityahu
<
[email protected]
>
Fri, 26 Jan 2018 14:11:37 +0000
(16:11 +0200)
committer
Stefano Babic
<
[email protected]
>
Sun, 4 Feb 2018 11:14:11 +0000
(12:14 +0100)
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]
>
Signed-off-by: Eran Matityahu <
[email protected]
>
Reviewed-by: Fabio Estevam <
[email protected]
>
arch/arm/include/asm/mach-imx/mxc_i2c.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/mach-imx/mxc_i2c.h
b/arch/arm/include/asm/mach-imx/mxc_i2c.h
index 292bf0cf7cfa17f55838235cc1ba2d77c0dbd011..80018e4a149b3ff3cd71b64235f1f4b720668b5e 100644
(file)
--- 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,