diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2014-08-20 15:09:04 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-09-09 15:37:08 +0200 |
commit | f42b2f606161d0051c14ccaccdc7fdef4bb2fc96 (patch) | |
tree | 878d2eb218fc777a63645f20fff4f004aad041ca /include/configs | |
parent | 0f3effb99fdabf41e6152e5aec2e5fceee7616f9 (diff) | |
download | u-boot-imx-f42b2f606161d0051c14ccaccdc7fdef4bb2fc96.zip u-boot-imx-f42b2f606161d0051c14ccaccdc7fdef4bb2fc96.tar.gz u-boot-imx-f42b2f606161d0051c14ccaccdc7fdef4bb2fc96.tar.bz2 |
arm: mx6: cm_fx6: add i2c support
Add support for all 3 I2C busses on Compulab CM-FX6 CoM.
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/cm_fx6.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index 0c25dda..e70259e 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -210,6 +210,17 @@ #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */ +/* I2C */ +#define CONFIG_CMD_I2C +#define CONFIG_SYS_I2C +#define CONFIG_SYS_I2C_MXC +#define CONFIG_SYS_I2C_SPEED 100000 +#define CONFIG_SYS_MXC_I2C3_SPEED 400000 + +#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 +#define CONFIG_SYS_I2C_EEPROM_BUS 2 + /* GPIO */ #define CONFIG_MXC_GPIO |