summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2018-11-21 12:35:17 +0300
committerSekhar Nori <nsekhar@ti.com>2018-11-26 14:15:10 +0300
commit786a9ab1330169f2602238822b4df5d5c4c98f6c (patch)
tree7ae4e8f86c10b3d103b9d095f9a465e9fdcb4cb1 /include
parentadcf60ce14c8250761af9de907eb6c7d096c26d3 (diff)
downloadlinux-786a9ab1330169f2602238822b4df5d5c4c98f6c.tar.xz
gpio: davinci: restore a way to manually specify the GPIO base
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. Other boards may be broken too, which I haven't tested. The problem is in the fact that most board files still use the legacy GPIO API where lines are requested by numbers rather than descriptors. While this should be fixed eventually, in order to unbreak the board for now - provide a way to manually specify the GPIO base in platform data. Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") Cc: stable@vger.kernel.org Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/gpio-davinci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h
index f92a47e18034..a93841bfb9f7 100644
--- a/include/linux/platform_data/gpio-davinci.h
+++ b/include/linux/platform_data/gpio-davinci.h
@@ -17,6 +17,8 @@
#define __DAVINCI_GPIO_PLATFORM_H
struct davinci_gpio_platform_data {
+ bool no_auto_base;
+ u32 base;
u32 ngpio;
u32 gpio_unbanked;
};