boards: stm32: Use dt API for serial peripheral configuration

Replace use of Kconfig UART_X symbols by calls to DT API.
Clean driver from symbols definitions

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-16 14:15:44 +02:00 committed by Kumar Gala
commit 81f27c2265
146 changed files with 282 additions and 784 deletions

View file

@ -14,14 +14,14 @@
/* pin assignments for Dragino LSN50 board */
static const struct pin_config pinconf[] = {
#ifdef CONFIG_UART_1
#if DT_HAS_NODE(DT_NODELABEL(usart1))
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
#endif /* CONFIG_UART_1 */
#ifdef CONFIG_UART_2
#endif
#if DT_HAS_NODE(DT_NODELABEL(usart2))
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
#endif /* CONFIG_UART_2 */
#endif
};
static int pinmux_stm32_init(struct device *port)