summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlya Ledvich <ilya@compulab.co.il>2013-11-07 07:57:35 +0200
committerTom Rini <trini@ti.com>2013-12-04 08:11:27 -0500
commitef62df80dd6d4d1876b55f61ecc03b50de63eb71 (patch)
treee779e022151eae5f8a106184d90ad0ebe5828797 /include
parente8ac22be6a6a8544f43ae58d9ef33574a51b5971 (diff)
downloadu-boot-imx-ef62df80dd6d4d1876b55f61ecc03b50de63eb71.zip
u-boot-imx-ef62df80dd6d4d1876b55f61ecc03b50de63eb71.tar.gz
u-boot-imx-ef62df80dd6d4d1876b55f61ecc03b50de63eb71.tar.bz2
cm_t335: add support for pca9555 i2c gpio extender
Add support for the 16 bits pca9555 i2c to gpio extender featured by the SB-T335 baseboard. Signed-off-by: Ilya Ledvich <ilya@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include')
-rw-r--r--include/configs/cm_t335.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h
index fbdead2..56e9a8e 100644
--- a/include/configs/cm_t335.h
+++ b/include/configs/cm_t335.h
@@ -166,5 +166,17 @@
#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
#define STATUS_LED_BOOT 0
+#ifndef CONFIG_SPL_BUILD
+/*
+ * Enable PCA9555 at I2C0-0x26.
+ * First select the I2C0 bus with "i2c dev 0", then use "pca953x" command.
+ */
+#define CONFIG_PCA953X
+#define CONFIG_CMD_PCA953X
+#define CONFIG_CMD_PCA953X_INFO
+#define CONFIG_SYS_I2C_PCA953X_ADDR 0x26
+#define CONFIG_SYS_I2C_PCA953X_WIDTH { {0x26, 16} }
+#endif /* CONFIG_SPL_BUILD */
+
#endif /* __CONFIG_CM_T335_H */