Skip to content

Commit 522875e

Browse files
Andrei Stefanesculinusw
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 <[email protected]> Signed-off-by: Andrei Stefanescu <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 846d9b8 commit 522875e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)