diff options
author | Jagan Teki | 2016-12-13 17:56:54 +0100 |
---|---|---|
committer | Stefano Babic | 2016-12-16 17:16:10 +0100 |
commit | d31373c4acf6ffa8ecc496644263db61c98a6c9d (patch) | |
tree | 882103d6da0125e40cff27985bdd8ca20f40833c | |
parent | 6116da989009bdfe3397f58b3e05461ab5cb3852 (diff) |
imx6: geam6ul: Add I2C support
Add I2C support for Engicam GEAM6UL module.
geam6ul> i2c bus
Bus 0: i2c@021a0000
Bus 1: i2c@021a4000
geam6ul> i2c dev 0
Setting bus to 0
geam6ul> i2c dev
Current bus is 0
geam6ul> i2c speed 100000
Setting bus speed to 100000 Hz
geam6ul> i2c probe
Valid chip addresses: 2C
geam6ul> i2c md 2C 0xff
00ff: 00 00 00 00 0f f0 01 64 ff ff 00 00 00 00 00 00 .......d........
Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
-rw-r--r-- | arch/arm/cpu/armv7/mx6/Kconfig | 1 | ||||
-rw-r--r-- | configs/imx6ul_geam_mmc_defconfig | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig index f2254319b40..4f9b2e14124 100644 --- a/arch/arm/cpu/armv7/mx6/Kconfig +++ b/arch/arm/cpu/armv7/mx6/Kconfig @@ -187,6 +187,7 @@ config TARGET_MX6UL_GEAM select OF_CONTROL select DM select DM_GPIO + select DM_I2C select DM_MMC select DM_THERMAL select SUPPORT_SPL diff --git a/configs/imx6ul_geam_mmc_defconfig b/configs/imx6ul_geam_mmc_defconfig index 24f3fd62e02..e1e1dd24cfa 100644 --- a/configs/imx6ul_geam_mmc_defconfig +++ b/configs/imx6ul_geam_mmc_defconfig @@ -25,11 +25,13 @@ CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_CMD_I2C=y CONFIG_OF_LIBFDT=y CONFIG_MXC_UART=y CONFIG_IMX_THERMAL=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y +CONFIG_SYS_I2C_MXC=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y |