@@ -15868,11 +15868,11 @@ R: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
S: Maintained
F: drivers/tty/serial/8250/8250_dw.c
-SYNOPSYS DESIGNWARE APB GPIO DRIVER
+SYNOPSYS DESIGNWARE APB PINCTRL & GPIO DRIVER
M: Hoan Tran <hoan@os.amperecomputing.com>
L: linux-gpio@vger.kernel.org
S: Maintained
-F: drivers/gpio/gpio-dwapb.c
+F: drivers/pinctrl/dw/pinctrl-dwapb.c
F: Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt
SYNOPSYS DESIGNWARE AXI DMAC DRIVER
@@ -195,14 +195,6 @@ config GPIO_DAVINCI
help
Say yes here to enable GPIO support for TI Davinci/Keystone SoCs.
-config GPIO_DWAPB
- tristate "Synopsys DesignWare APB GPIO driver"
- select GPIO_GENERIC
- select GENERIC_IRQ_CHIP
- help
- Say Y or M here to build support for the Synopsys DesignWare APB
- GPIO block.
-
config GPIO_EIC_SPRD
tristate "Spreadtrum EIC support"
depends on ARCH_SPRD || COMPILE_TEST
@@ -49,7 +49,6 @@ obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o
obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o
obj-$(CONFIG_GPIO_DAVINCI) += gpio-davinci.o
obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o
-obj-$(CONFIG_GPIO_DWAPB) += gpio-dwapb.o
obj-$(CONFIG_GPIO_EIC_SPRD) += gpio-eic-sprd.o
obj-$(CONFIG_GPIO_EM) += gpio-em.o
obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o
@@ -388,6 +388,7 @@ source "drivers/pinctrl/actions/Kconfig"
source "drivers/pinctrl/aspeed/Kconfig"
source "drivers/pinctrl/bcm/Kconfig"
source "drivers/pinctrl/berlin/Kconfig"
+source "drivers/pinctrl/dw/Kconfig"
source "drivers/pinctrl/freescale/Kconfig"
source "drivers/pinctrl/intel/Kconfig"
source "drivers/pinctrl/mvebu/Kconfig"
@@ -52,6 +52,7 @@ obj-y += actions/
obj-$(CONFIG_ARCH_ASPEED) += aspeed/
obj-y += bcm/
obj-$(CONFIG_PINCTRL_BERLIN) += berlin/
+obj-y += dw/
obj-y += freescale/
obj-$(CONFIG_X86) += intel/
obj-y += mvebu/
new file mode 100644
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config GPIO_DWAPB
+ tristate "Synopsys DesignWare APB GPIO driver"
+ select GPIOLIB
+ select GPIOLIB_IRQCHIP
+ select GPIO_GENERIC
+ help
+ Say Y or M here to build support for the Synopsys DesignWare APB
+ GPIO block.
new file mode 100644
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+# DesignWare pinctrl support
+
+obj-$(CONFIG_PINCTRL_DWAPB) += pinctrl-dwapb.o
similarity index 99%
rename from drivers/gpio/gpio-dwapb.c
rename to drivers/pinctrl/dw/pinctrl-dwapb.c
@@ -26,9 +26,6 @@
#include <linux/platform_data/gpio-dwapb.h>
#include <linux/slab.h>
-#include "gpiolib.h"
-#include "gpiolib-acpi.h"
-
#define GPIO_SWPORTA_DR 0x00
#define GPIO_SWPORTA_DDR 0x04
#define GPIO_SWPORTB_DR 0x0c
dwapb-gpio block also have alternate function selection possibility. In order to convert it pinctrl support, move it to pinctrl folder. Signed-off-by: Clement Leger <cleger@kalray.eu> --- MAINTAINERS | 4 ++-- drivers/gpio/Kconfig | 8 -------- drivers/gpio/Makefile | 1 - drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/dw/Kconfig | 9 +++++++++ drivers/pinctrl/dw/Makefile | 4 ++++ drivers/{gpio/gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} | 3 --- 8 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 drivers/pinctrl/dw/Kconfig create mode 100644 drivers/pinctrl/dw/Makefile rename drivers/{gpio/gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} (99%)