From 111e9f18883849552a2e09a149e676f67348aa2f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 30 Mar 2014 19:08:37 +0000 Subject: kernel: backport BCM5357 fix for GPIOs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This backports: bcma: gpio: register 32 GPIOs on BCM5357 Signed-off-by: Rafał Miłecki Signed-off-by: Hauke Mehrtens git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40347 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/generic/patches-3.14/025-bcma_backport.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 target/linux/generic/patches-3.14/025-bcma_backport.patch (limited to 'target/linux/generic/patches-3.14') diff --git a/target/linux/generic/patches-3.14/025-bcma_backport.patch b/target/linux/generic/patches-3.14/025-bcma_backport.patch new file mode 100644 index 0000000000..b49d345473 --- /dev/null +++ b/target/linux/generic/patches-3.14/025-bcma_backport.patch @@ -0,0 +1,18 @@ +--- a/drivers/bcma/driver_gpio.c ++++ b/drivers/bcma/driver_gpio.c +@@ -218,7 +218,14 @@ int bcma_gpio_init(struct bcma_drv_cc *c + #if IS_BUILTIN(CONFIG_BCMA_HOST_SOC) + chip->to_irq = bcma_gpio_to_irq; + #endif +- chip->ngpio = 16; ++ switch (cc->core->bus->chipinfo.id) { ++ case BCMA_CHIP_ID_BCM5357: ++ chip->ngpio = 32; ++ break; ++ default: ++ chip->ngpio = 16; ++ } ++ + /* There is just one SoC in one device and its GPIO addresses should be + * deterministic to address them more easily. The other buses could get + * a random base number. */ -- cgit v1.2.3