summaryrefslogtreecommitdiff
path: root/include/pca9698.h
diff options
context:
space:
mode:
authorDirk Eibach <eibach@gdsys.de>2011-10-03 23:13:51 +0000
committerWolfgang Denk <wd@denx.de>2011-10-22 00:43:45 +0200
commit486cad03be46114d726df56721ee27cba52c38e3 (patch)
tree8559086723904502829305d1078620ee83f8688f /include/pca9698.h
parent96baa4c37695b4dac2bde981f59c38e7af19f2eb (diff)
downloadu-boot-imx-486cad03be46114d726df56721ee27cba52c38e3.zip
u-boot-imx-486cad03be46114d726df56721ee27cba52c38e3.tar.gz
u-boot-imx-486cad03be46114d726df56721ee27cba52c38e3.tar.bz2
gpio: Add PCA9698 40-bit I2C I/O port
Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Diffstat (limited to 'include/pca9698.h')
-rw-r--r--include/pca9698.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pca9698.h b/include/pca9698.h
new file mode 100644
index 0000000..2506088
--- /dev/null
+++ b/include/pca9698.h
@@ -0,0 +1,9 @@
+#ifndef __PCA9698_H_
+#define __PCA9698_H_
+
+int pca9698_direction_input(u8 chip, unsigned offset);
+int pca9698_direction_output(u8 chip, unsigned offset);
+int pca9698_get_input(u8 chip, unsigned offset);
+int pca9698_set_output(u8 chip, unsigned offset, int value);
+
+#endif /* __PCA9698_H_ */