Skip to contentSkip to conversation

Add support for SX151x SPI GPIO Expanders

PATCH New Viktar Palstsiuk 2 participants 2 messages Oct 31, 2013 – Nov 8, 2013 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add support for SX151x SPI GPIO Expanders

---
 drivers/gpio/Makefile |   1 +
 drivers/gpio/sx151x.c | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++
 include/sx151x.h      |  17 ++++
 3 files changed, 260 insertions(+)
 create mode 100644 drivers/gpio/sx151x.c
 create mode 100644 include/sx151x.h
drivers/gpio/Makefile +1 -0
index 71ddb00..9f13342 100644
@@ -34,6 +34,7 @@ COBJS-$(CONFIG_S3C2440_GPIO)	+= s3c2440_gpio.o
 COBJS-$(CONFIG_XILINX_GPIO)	+= xilinx_gpio.o
 COBJS-$(CONFIG_ADI_GPIO2)	+= adi_gpio2.o
 COBJS-$(CONFIG_TCA642X)		+= tca642x.o
+COBJS-$(CONFIG_SX151X)		+= sx151x.o
 
 COBJS	:= $(COBJS-y)
 SRCS 	:= $(COBJS:.o=.c)
drivers/gpio/sx151x.c new file +242 -0

242 lines not on this page · raw message

include/sx151x.h new file +17 -0
new file mode 100644
index 0000000..be42b06
@@ -0,0 +1,17 @@
+/*
+ * (C) Copyright 2013
+ * Viktar Palstsiuk, Promwad, [email protected]
+ *
+ * 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_ */
Signature · 1 line
1.8.4.rc3
#1 lore raw

PATCH v2 1/1 Add support for SX151x SPI GPIO Expanders

Quoted 1 line · Viktar Palstsiuk

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/ce96d695/attachment.pgp>