Skip to contentSkip to conversation

ARC: HSDK: introduce CREG GPIO driver

PATCH New Eugeniy Paltsev 2 participants 2 messages Oct 16, 2017 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARC: HSDK: introduce CREG GPIO driver

The HSDK can manage some pins via CREG registers block.

---
Changes v1->v2:
* Use linux debug function (debug -> pr_debug, errror -> pr_err) as uboot "error" was removed.

 MAINTAINERS                   |   6 +++
 drivers/gpio/Kconfig          |   7 +++
 drivers/gpio/Makefile         |   1 +
 drivers/gpio/hsdk-creg-gpio.c | 110 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 drivers/gpio/hsdk-creg-gpio.c
MAINTAINERS +6 -0
index b167b02..2a20b94 100644
@@ -59,6 +59,12 @@ S:	Maintained
 T:	git git://git.denx.de/u-boot-arc.git
 F:	arch/arc/
 
+ARC HSDK CREG GPIO
+M:	Eugeniy Paltsev <[email protected]>
+S:	Maintained
+L:	uboot-snps-arc at synopsys.com
+F:	drivers/gpio/hsdk-creg-gpio.c
+
 ARM
 M:	Albert Aribaud <[email protected]>
 S:	Maintained
drivers/gpio/Kconfig +7 -0
index 6240c39..2acb33b 100644
@@ -80,6 +80,13 @@ config IMX_RGPIO2P
 	help
 	  This driver supports i.MX7ULP Rapid GPIO2P controller.
 
+config HSDK_CREG_GPIO
+	bool "HSDK CREG GPIO griver"
+	depends on DM
+	default n
+	help
+	  This driver supports CREG GPIOs on Synopsys HSDK SOC.
+
 config LPC32XX_GPIO
 	bool "LPC32XX GPIO driver"
 	depends on DM
drivers/gpio/Makefile +1 -0
index 81f55a5..201d7bf 100644
@@ -54,6 +54,7 @@ obj-$(CONFIG_GPIO_UNIPHIER)	+= gpio-uniphier.o
 obj-$(CONFIG_ZYNQ_GPIO)		+= zynq_gpio.o
 obj-$(CONFIG_VYBRID_GPIO)	+= vybrid_gpio.o
 obj-$(CONFIG_HIKEY_GPIO)	+= hi6220_gpio.o
+obj-$(CONFIG_HSDK_CREG_GPIO)	+= hsdk-creg-gpio.o
 obj-$(CONFIG_IMX_RGPIO2P)	+= imx_rgpio2p.o
 obj-$(CONFIG_PIC32_GPIO)	+= pic32_gpio.o
 obj-$(CONFIG_MVEBU_GPIO)	+= mvebu_gpio.o
drivers/gpio/hsdk-creg-gpio.c new file +110 -0

110 lines not on this page · raw message

Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/1 ARC: HSDK: introduce CREG GPIO driver

Hi Eugeniy,

Quoted 8 lines · Eugeniy Paltsev

The HSDK can manage some pins via CREG registers block.

---
Changes v1->v2:
  * Use linux debug function (debug -> pr_debug, errror -> pr_err) as uboot "error" was removed.

Quoted 6 lines

 MAINTAINERS                   |   6 +++
 drivers/gpio/Kconfig          |   7 +++
 drivers/gpio/Makefile         |   1 + drivers/gpio/hsdk-creg-gpio.c | 110 ++++++++++++++++++++++++++++++++++++++++++

 4 files changed, 124 insertions(+)

 create mode 100644 drivers/gpio/hsdk-creg-gpio.c

Applied to u-boot-arc/next.

-Alexey