summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/meson/pinctrl-meson.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-01-17 11:23:15 +0100
committerLinus Walleij <linus.walleij@linaro.org>2019-01-21 14:50:20 +0100
commit64856974a36178a0b2a1081d4cf3e8c9dd72fc44 (patch)
tree20f07e686eb816730e9f3e257ef519bcea15bec9 /drivers/pinctrl/meson/pinctrl-meson.c
parente66dd48e8b0dee104d16417d30361074b08baca8 (diff)
downloadlwn-64856974a36178a0b2a1081d4cf3e8c9dd72fc44.tar.gz
lwn-64856974a36178a0b2a1081d4cf3e8c9dd72fc44.zip
pinctrl: meson: add optional region for drive strength
On the G12a, there is a new 'region' to handle the drive-strength. This is optional since the older do not have this. Fixes: 29ae0952e85f ("pinctrl: meson-g12a: add pinctrl driver support") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/meson/pinctrl-meson.c')
-rw-r--r--drivers/pinctrl/meson/pinctrl-meson.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c
index a4ae1ac5369e..96a4a72708e4 100644
--- a/drivers/pinctrl/meson/pinctrl-meson.c
+++ b/drivers/pinctrl/meson/pinctrl-meson.c
@@ -507,6 +507,12 @@ static int meson_pinctrl_parse_dt(struct meson_pinctrl *pc,
if (IS_ERR(pc->reg_pullen))
pc->reg_pullen = pc->reg_pull;
+ pc->reg_ds = meson_map_resource(pc, gpio_np, "ds");
+ if (IS_ERR(pc->reg_ds)) {
+ dev_dbg(pc->dev, "ds registers not found - skipping\n");
+ pc->reg_ds = NULL;
+ }
+
return 0;
}