Commit cc08d96d authored by Alvin Šipraga's avatar Alvin Šipraga Committed by Alberto Escolar
Browse files

drivers: gpio: mspm0: allow configuration of open-drain outputs



Check the GPIO_OPEN_DRAIN flag and set the corresponding HIZ1 bit in the
PINCM register.

Signed-off-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
parent 5ede804e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -148,6 +148,8 @@ static int gpio_mspm0_pin_configure(const struct device *port,
						  DL_GPIO_INVERSION_DISABLE,
						  pull_res,
						  DL_GPIO_DRIVE_STRENGTH_LOW,
						  (flags & GPIO_OPEN_DRAIN) ?
						  DL_GPIO_HIZ_ENABLE :
						  DL_GPIO_HIZ_DISABLE);

		/* Set initial state */