diff --git a/drivers/gpio/gpio_rv32m1.c b/drivers/gpio/gpio_rv32m1.c index ce01594b23f..12397296e25 100644 --- a/drivers/gpio/gpio_rv32m1.c +++ b/drivers/gpio/gpio_rv32m1.c @@ -126,6 +126,10 @@ static int gpio_rv32m1_configure(const struct device *dev, return -ENOTSUP; } + /* Set PCR mux to GPIO for the pin we are configuring */ + mask |= PORT_PCR_MUX_MASK; + pcr |= PORT_PCR_MUX(kPORT_MuxAsGpio); + /* Now do the PORT module. Figure out the pullup/pulldown * configuration, but don't write it to the PCR register yet. */