boards: stm32: pinmux: Restore Kconfig control on pinmux (i2c)
In order to avoid pin configuration conflicts between peripherals, add CONFIG_I2C flag to for each i2c pinmux configuration. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
1a7bcccd69
commit
572e1c4980
52 changed files with 82 additions and 82 deletions
|
@ -26,11 +26,11 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay) && CONFIG_I2C
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay) && CONFIG_I2C
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue