Skip to content

Commit 522875e

Browse files
Andrei StefanescuLinus Walleij
authored andcommitted
pinctrl: s32cc: configure PIN_CONFIG_DRIVE_PUSH_PULL
Previously, it was possible to only configure the open-drain for a pin. However, after a pin got configured with open-drain, there wasn't any way to disable it. Add the push-pull configuration in order to reverse the open-drain configuration. Signed-off-by: Florin Buica <florin.buica@nxp.com> Signed-off-by: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com> Link: https://lore.kernel.org/20240723131832.1171036-3-andrei.stefanescu@oss.nxp.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 846d9b8 commit 522875e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/pinctrl/nxp/pinctrl-s32cc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@ static int s32_parse_pincfg(unsigned long pincfg, unsigned int *mask,
510510
*config |= S32_MSCR_ODE;
511511
*mask |= S32_MSCR_ODE;
512512
break;
513+
case PIN_CONFIG_DRIVE_PUSH_PULL:
514+
*config &= ~S32_MSCR_ODE;
515+
*mask |= S32_MSCR_ODE;
516+
break;
513517
case PIN_CONFIG_OUTPUT_ENABLE:
514518
if (arg)
515519
*config |= S32_MSCR_OBE;

0 commit comments

Comments
 (0)