Add support for SX151x SPI GPIO Expanders
PATCH v2 1/1 Add support for SX151x SPI GPIO Expanders
Signed-off-by Viktar Palstsiuk <[email protected]>
--- 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
@@ -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
@@ -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
PATCH v2 1/1 Add support for SX151x SPI GPIO Expanders
Quoted 1 line · Viktar Palstsiuk
Signed-off-by Viktar Palstsiuk <[email protected]>
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>