Skip to content

Commit 825170e

Browse files
scottwcpggalak
authored andcommitted
drivers: pinmux: mchp: Update pinmux based on latest HAL
Microchip HAL 1.2.0 fixed a bug in the define of GPIO control register MUX field. The incorrect MUX defined cleared by GPIO input pad disable field by accident. After the MUX definition was corrected the pinmux driver must be modified to mask off the input pad disable for the pin to be operational. Signed-off-by: Scott Worley <[email protected]>
1 parent 6e11ccb commit 825170e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pinmux/pinmux_mchp_xec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ static int pinmux_xec_set(const struct device *dev, uint32_t pin,
3636
return -EINVAL;
3737
}
3838

39-
mask |= MCHP_GPIO_CTRL_BUFT_MASK | MCHP_GPIO_CTRL_MUX_MASK;
39+
mask |= MCHP_GPIO_CTRL_BUFT_MASK | MCHP_GPIO_CTRL_MUX_MASK |
40+
MCHP_GPIO_CTRL_INPAD_DIS_MASK;
4041

4142
/* Check for open drain/push_pull setting */
4243
if (func & MCHP_GPIO_CTRL_BUFT_OPENDRAIN) {

0 commit comments

Comments
 (0)