bcm53xx: fix GPIO pins > 16
[15.05/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 181-bcma-ngpio-bcm4707.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Subject: [PATCH] bcma: enable 32 GPIO pins for BCM4707+
3
4 At least one BCM4709 device uses GPIO pins > 16.
5
6 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
7 ---
8 --- a/drivers/bcma/driver_gpio.c
9 +++ b/drivers/bcma/driver_gpio.c
10 @@ -226,6 +226,7 @@ int bcma_gpio_init(struct bcma_drv_cc *c
11                 chip->of_node   = cc->core->dev.of_node;
12  #endif
13         switch (bus->chipinfo.id) {
14 +       case BCMA_CHIP_ID_BCM4707:
15         case BCMA_CHIP_ID_BCM5357:
16         case BCMA_CHIP_ID_BCM53572:
17                 chip->ngpio     = 32;