summaryrefslogtreecommitdiff
path: root/include/sx151x.h
diff options
context:
space:
mode:
authorViktar Palstsiuk <viktar.palstsiuk@promwad.com>2013-10-31 11:16:59 +0300
committerTom Rini <trini@ti.com>2013-11-08 09:39:13 -0500
commit7d9ec6a0aff88b6d7d3b36c04ff1ae490324ebf1 (patch)
treed679e1e4414795d8a81788a3bd5f248b10f24ebd /include/sx151x.h
parent3314204b665e42aac360a0f709561d2686ea2862 (diff)
downloadu-boot-imx-7d9ec6a0aff88b6d7d3b36c04ff1ae490324ebf1.zip
u-boot-imx-7d9ec6a0aff88b6d7d3b36c04ff1ae490324ebf1.tar.gz
u-boot-imx-7d9ec6a0aff88b6d7d3b36c04ff1ae490324ebf1.tar.bz2
Add support for SX151x SPI GPIO Expanders
Signed-off-by: Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
Diffstat (limited to 'include/sx151x.h')
-rw-r--r--include/sx151x.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sx151x.h b/include/sx151x.h
new file mode 100644
index 0000000..be42b06
--- /dev/null
+++ b/include/sx151x.h
@@ -0,0 +1,17 @@
+/*
+ * (C) Copyright 2013
+ * Viktar Palstsiuk, Promwad, viktar.palstsiuk@promwad.com
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __SX151X_H_
+#define __SX151X_H_
+
+int sx151x_get_value(int chip, int gpio);
+int sx151x_set_value(int chip, int gpio, int val);
+int sx151x_direction_input(int chip, int gpio);
+int sx151x_direction_output(int chip, int gpio);
+int sx151x_reset(int chip);
+
+#endif /* __SX151X_H_ */