From 2d6b2cd4b7ecb5cdec79949eeb458eb6121295b9 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Thu, 15 Aug 2013 14:00:38 +0800 Subject: ENGR00275413-02: imx6sl:evk: add i2c0 support for imx6sl evk Add i2c0 bus support in mx6slevk config file. Signed-off-by: Fugang Duan --- include/configs/mx6slevk.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index 1e6f863..48a3d84 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -31,6 +31,7 @@ #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M) #define CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_BOARD_LATE_INIT #define CONFIG_MXC_GPIO #define CONFIG_MXC_UART @@ -66,6 +67,14 @@ #define CONFIG_CONS_INDEX 1 #define CONFIG_BAUDRATE 115200 +/* I2C configs */ +#define CONFIG_CMD_I2C +#define CONFIG_HARD_I2C 1 +#define CONFIG_I2C_MXC 1 +#define CONFIG_SYS_I2C_BASE I2C1_BASE_ADDR +#define CONFIG_SYS_I2C_SPEED 100000 +#define CONFIG_SYS_I2C_SLAVE 0x8 + /* Command definition */ #include -- cgit v1.1