Skip to contentSkip to conversation

drivers: gpio: add driver for Microchip PIC32 GPIO controller.

PATCH Superseded Purna Chandra Mandal 1 participant 1 message Dec 17, 2015 GPIO

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 11/18 drivers: gpio: add driver for Microchip PIC32 GPIO controller.

PIC32 has ten independently programmable ports and each one with 16 pins. These pins can be configured and used as GPIO, if they are not used by any other peripherals.

---

 drivers/gpio/Kconfig      |   7 ++
 drivers/gpio/Makefile     |   2 +-
 drivers/gpio/pic32_gpio.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 172 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpio/pic32_gpio.c
drivers/gpio/Kconfig +7 -0
index e60e9fd..13e9a6a 100644
@@ -83,4 +83,11 @@ config VYBRID_GPIO
     help
       Say yes here to support Vybrid vf610 GPIOs.
 
+config PIC32_GPIO
+    bool "Microchip PIC32 GPIO driver"
+    depends on DM_GPIO
+    default y if MACH_PIC32
+    help
+      Say yes here to support Microchip PIC32 GPIOs.
+
 endmenu
drivers/gpio/Makefile +1 -1
index fb4fd25..845a6d4 100644
@@ -46,4 +46,4 @@ obj-$(CONFIG_STM32_GPIO)    += stm32_gpio.o
 obj-$(CONFIG_ZYNQ_GPIO)        += zynq_gpio.o
 obj-$(CONFIG_VYBRID_GPIO)    += vybrid_gpio.o
 obj-$(CONFIG_HIKEY_GPIO)    += hi6220_gpio.o
-
+obj-$(CONFIG_PIC32_GPIO)    += pic32_gpio.o
drivers/gpio/pic32_gpio.c new file +164 -0

164 lines not on this page · raw message

Signature · 1 line
1.8.3.1