drivers/serial: stm32: Get clocks information from device tree
Provide CONFIG macros for clocks bits and bus properties in fixup files and use them to simplify logic in uart devices instanciation code Fixes #10448 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
828ae6b8bc
commit
d76a5592e4
9 changed files with 100 additions and 30 deletions
|
@ -61,12 +61,16 @@
|
|||
#define CONFIG_UART_STM32_USART_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_STM32_USART_1_NAME ST_STM32_USART_40013800_LABEL
|
||||
#define USART_1_IRQ ST_STM32_USART_40013800_IRQ_0
|
||||
#define CONFIG_UART_STM32_USART_1_CLOCK_BITS ST_STM32_USART_40013800_CLOCK_BITS
|
||||
#define CONFIG_UART_STM32_USART_1_CLOCK_BUS ST_STM32_USART_40013800_CLOCK_BUS
|
||||
|
||||
#define CONFIG_UART_STM32_USART_2_BASE_ADDRESS ST_STM32_USART_40004400_BASE_ADDRESS
|
||||
#define CONFIG_UART_STM32_USART_2_BAUD_RATE ST_STM32_USART_40004400_CURRENT_SPEED
|
||||
#define CONFIG_UART_STM32_USART_2_IRQ_PRI ST_STM32_USART_40004400_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_STM32_USART_2_NAME ST_STM32_USART_40004400_LABEL
|
||||
#define USART_2_IRQ ST_STM32_USART_40004400_IRQ_0
|
||||
#define CONFIG_UART_STM32_USART_2_CLOCK_BITS ST_STM32_USART_40004400_CLOCK_BITS
|
||||
#define CONFIG_UART_STM32_USART_2_CLOCK_BUS ST_STM32_USART_40004400_CLOCK_BUS
|
||||
|
||||
#define CONFIG_I2C_1_BASE_ADDRESS ST_STM32_I2C_V2_40005400_BASE_ADDRESS
|
||||
#define CONFIG_I2C_1_COMBINED_IRQ_PRI ST_STM32_I2C_V2_40005400_IRQ_COMBINED_PRIORITY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue