pinctrl: stm32: activate strict mux mode
authorGabriel Fernandez <gabriel.fernandez@st.com>
Wed, 14 Dec 2016 14:24:16 +0000 (15:24 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Dec 2016 08:06:39 +0000 (09:06 +0100)
This activates strict mode muxing for the STM32 pin controllers,
as these do not allow GPIO and functions to use the same pin
simultaneously.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c

index efc43711ff5cbcff2c94838e06ead49623ab9118..c983a1e33dbe0cdaf68dda324573e2535b24a30c 100644 (file)
@@ -631,6 +631,7 @@ static const struct pinmux_ops stm32_pmx_ops = {
        .get_function_groups    = stm32_pmx_get_func_groups,
        .set_mux                = stm32_pmx_set_mux,
        .gpio_set_direction     = stm32_pmx_gpio_set_direction,
+       .strict                 = true,
 };
 
 /* Pinconf functions */