mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
This commit is contained in:
parent
846d9b8628
commit
522875e09b
|
|
@ -510,6 +510,10 @@ static int s32_parse_pincfg(unsigned long pincfg, unsigned int *mask,
|
|||
*config |= S32_MSCR_ODE;
|
||||
*mask |= S32_MSCR_ODE;
|
||||
break;
|
||||
case PIN_CONFIG_DRIVE_PUSH_PULL:
|
||||
*config &= ~S32_MSCR_ODE;
|
||||
*mask |= S32_MSCR_ODE;
|
||||
break;
|
||||
case PIN_CONFIG_OUTPUT_ENABLE:
|
||||
if (arg)
|
||||
*config |= S32_MSCR_OBE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user