diff options
author | Albert ARIBAUD \\(3ADEV\\) <albert.aribaud@3adev.fr> | 2015-09-21 22:43:38 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-10-02 10:42:31 +0200 |
commit | 03544c6640e8a969f8409eac637f4780e1eabb1d (patch) | |
tree | be3b0017419c55a9f81fd1058673b85646baafca /include/configs/m53evk.h | |
parent | 3f353ceccbbb25315cf7591f59f8dbd853b657e4 (diff) | |
download | u-boot-imx-03544c6640e8a969f8409eac637f4780e1eabb1d.zip u-boot-imx-03544c6640e8a969f8409eac637f4780e1eabb1d.tar.gz u-boot-imx-03544c6640e8a969f8409eac637f4780e1eabb1d.tar.bz2 |
I2C: mxc_i2c: make I2C1 and I2C2 optional
The driver assumed that I2C1 and I2C2 were always enabled,
and if they were not, then an asynchronous abort was (silently)
raised, to be caught much later on in the Linux kernel.
Fix this by making I2C1 and I2C2 optional just like I2C3 and I2C4
are.
To make the change binary-invariant, declare I2C1 and I2C2 in
every include/configs/ file which defines CONFIG_SYS_I2C_MXC.
Also, while updating README about CONFIG_SYS_I2C_MXC_I2C1 and
CONFIG_SYS_I2C_MXC_I2C2, add missing descriptions for I2C4 speed
(CONFIG_SYS_MXC_I2C4_SPEED) and slave (CONFIG_SYS_MXC_I2C4_SLAVE)
config options.
Signed-off-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Diffstat (limited to 'include/configs/m53evk.h')
-rw-r--r-- | include/configs/m53evk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h index 35058e2..8853d8f 100644 --- a/include/configs/m53evk.h +++ b/include/configs/m53evk.h @@ -172,6 +172,8 @@ #ifdef CONFIG_CMD_I2C #define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MXC +#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ +#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */ #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ #define CONFIG_SYS_RTC_BUS_NUM 1 /* I2C2 */ #endif |