drivers: gpio: add driver for Microchip PIC32 GPIO controller.
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.
Signed-off-by Purna Chandra Mandal <[email protected]>
---
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
@@ -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
@@ -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