summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-lantiq.c
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-07-13 22:37:49 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-07-18 12:22:43 +0300
commitdc62db7138aa9365480254dda4c3e1316b1b1bbc (patch)
tree22b94f14dcf5c84c0f2ef399c247102886e3d6b8 /drivers/pinctrl/pinctrl-lantiq.c
parenta9ab5bf33ce9883fbf5c2fc8f4eada00c46dc089 (diff)
downloadlinux-dc62db7138aa9365480254dda4c3e1316b1b1bbc.tar.xz
pinctrl: ocelot: Fix pincfg for lan966x
The blamed commit introduce support for lan966x which use the same pinconf_ops as sparx5. The problem is that pinconf_ops is specific to sparx5. More precisely the offset of the bits in the pincfg register are different and also lan966x doesn't have support for PIN_CONFIG_INPUT_SCHMITT_ENABLE. Fix this by making pinconf_ops more generic such that it can be also used by lan966x. This is done by introducing 'ocelot_pincfg_data' which contains the offset and what is supported for each SOC. Fixes: 531d6ab36571 ("pinctrl: ocelot: Extend support for lan966x") Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220713193750.4079621-2-horatiu.vultur@microchip.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-lantiq.c')
0 files changed, 0 insertions, 0 deletions