airoha: Add new target platform
[openwrt/openwrt.git] / target / linux / airoha / patches-5.15 / 0003-add-airoha-en7523-gpio-driver.patch
1 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
2 index cbfb6f13..b3106df6 100644
3 --- a/drivers/gpio/Kconfig
4 +++ b/drivers/gpio/Kconfig
5 @@ -247,6 +247,16 @@ config GPIO_EM
6 help
7 Say yes here to support GPIO on Renesas Emma Mobile SoCs.
8
9 +config GPIO_EN7523
10 + tristate "Airoha GPIO support"
11 + depends on ARCH_AIROHA
12 + default ARCH_AIROHA
13 + select GPIO_GENERIC
14 + select GPIOLIB_IRQCHIP
15 + help
16 + Say Y or M here to support the GPIO controller block on the
17 + Airoha EN7523 SoC. It supports two banks of 32 GPIOs.
18 +
19 config GPIO_EP93XX
20 def_bool y
21 depends on ARCH_EP93XX
22 diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
23 index 61202717..4c73ce82 100644
24 --- a/drivers/gpio/Makefile
25 +++ b/drivers/gpio/Makefile
26 @@ -57,6 +57,7 @@ obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o
27 obj-$(CONFIG_GPIO_DWAPB) += gpio-dwapb.o
28 obj-$(CONFIG_GPIO_EIC_SPRD) += gpio-eic-sprd.o
29 obj-$(CONFIG_GPIO_EM) += gpio-em.o
30 +obj-$(CONFIG_GPIO_EN7523) += gpio-en7523.o
31 obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o
32 obj-$(CONFIG_GPIO_EXAR) += gpio-exar.o
33 obj-$(CONFIG_GPIO_F7188X) += gpio-f7188x.o