]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cm_t335: add support for pca9555 i2c gpio extender
authorIlya Ledvich <ilya@compulab.co.il>
Thu, 7 Nov 2013 05:57:35 +0000 (07:57 +0200)
committerTom Rini <trini@ti.com>
Wed, 4 Dec 2013 13:11:27 +0000 (08:11 -0500)
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>
include/configs/cm_t335.h

index fbdead27946809cbf4b60869c1ced8a98bf53a12..56e9a8e0e82f01b8d25cf008d8529483e3c35006 100644 (file)
 #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 */