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
|
@ -106,24 +106,32 @@
|
|||
#define CONFIG_UART_STM32_USART_1_IRQ_PRI ST_STM32_USART_40011000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_STM32_USART_1_NAME ST_STM32_USART_40011000_LABEL
|
||||
#define USART_1_IRQ ST_STM32_USART_40011000_IRQ_0
|
||||
#define CONFIG_UART_STM32_USART_1_CLOCK_BITS ST_STM32_USART_40011000_CLOCK_BITS
|
||||
#define CONFIG_UART_STM32_USART_1_CLOCK_BUS ST_STM32_USART_40011000_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_UART_STM32_USART_3_BASE_ADDRESS ST_STM32_USART_40004800_BASE_ADDRESS
|
||||
#define CONFIG_UART_STM32_USART_3_BAUD_RATE ST_STM32_USART_40004800_CURRENT_SPEED
|
||||
#define CONFIG_UART_STM32_USART_3_IRQ_PRI ST_STM32_USART_40004800_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_STM32_USART_3_NAME ST_STM32_USART_40004800_LABEL
|
||||
#define USART_3_IRQ ST_STM32_USART_40004800_IRQ_0
|
||||
#define CONFIG_UART_STM32_USART_3_CLOCK_BITS ST_STM32_USART_40004800_CLOCK_BITS
|
||||
#define CONFIG_UART_STM32_USART_3_CLOCK_BUS ST_STM32_USART_40004800_CLOCK_BUS
|
||||
|
||||
#define CONFIG_UART_STM32_USART_6_NAME ST_STM32_USART_40011400_LABEL
|
||||
#define CONFIG_UART_STM32_USART_6_BASE_ADDRESS ST_STM32_USART_40011400_BASE_ADDRESS
|
||||
#define CONFIG_UART_STM32_USART_6_BAUD_RATE ST_STM32_USART_40011400_CURRENT_SPEED
|
||||
#define CONFIG_UART_STM32_USART_6_IRQ_PRI ST_STM32_USART_40011400_IRQ_0_PRIORITY
|
||||
#define USART_6_IRQ ST_STM32_USART_40011400_IRQ_0
|
||||
#define CONFIG_UART_STM32_USART_6_CLOCK_BITS ST_STM32_USART_40011400_CLOCK_BITS
|
||||
#define CONFIG_UART_STM32_USART_6_CLOCK_BUS ST_STM32_USART_40011400_CLOCK_BUS
|
||||
|
||||
#define CONFIG_I2C_1_BASE_ADDRESS ST_STM32_I2C_V1_40005400_BASE_ADDRESS
|
||||
#define CONFIG_I2C_1_EVENT_IRQ_PRI ST_STM32_I2C_V1_40005400_IRQ_EVENT_PRIORITY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue