Skip to content

Commit

Permalink
drivers: gpio: imx rt11xx: fix wrong gpio pull disable mask
Browse files Browse the repository at this point in the history
Fixes: zephyrproject-rtos#75390
A wrong bit mask (wrong: IOMUXC_SW_PAD_CTL_PAD_PUS_MASK = 0x8) was used.
That bit mask is for PUE/PUS-type gpio registers, but this is the
section for registers with alternative PULL (PDRV) type layout.
Right bit mask: IOMUXC_SW_PAD_CTL_PAD_PULL_MASK

Signed-off-by: Nils Larsen <nils.larsen@posteo.de>
  • Loading branch information
nelarsen authored and aescolar committed Jul 8, 2024
1 parent 2ee21ec commit dcfc3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_mcux_igpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int mcux_igpio_configure(const struct device *dev,
}
} else {
/* Set pin to no pull */
reg |= IOMUXC_SW_PAD_CTL_PAD_PUS_MASK;
reg |= IOMUXC_SW_PAD_CTL_PAD_PULL_MASK;
}
/* PDRV/SNVS/LPSR reg have different ODE bits */
if (config->pin_muxes[cfg_idx].pdrv_mux) {
Expand Down

0 comments on commit dcfc3e7

Please sign in to comment.