uart: Add support for stm31mp157c_dk2 board
Add support for stm32mp1 basic UART API with Zephyr. UART Console and UART shell are also supported. Async UART API and USART support is to be done. Signed-off-by: Yaël Boutreux <yael.boutreux@st.com> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
This commit is contained in:
parent
e9b5fe333e
commit
6f225ab690
8 changed files with 250 additions and 5 deletions
|
@ -194,4 +194,123 @@
|
|||
DT_ST_STM32_GPIO_5000C000_CLOCK_BITS
|
||||
#define DT_GPIO_STM32_GPIOK_CLOCK_BUS \
|
||||
DT_ST_STM32_GPIO_5000C000_CLOCK_BUS
|
||||
|
||||
#define DT_UART_STM32_USART_2_BASE_ADDRESS \
|
||||
DT_ST_STM32_USART_4000E000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_USART_2_BAUD_RATE \
|
||||
DT_ST_STM32_USART_4000E000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_USART_2_IRQ_PRI \
|
||||
DT_ST_STM32_USART_4000E000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_USART_2_NAME \
|
||||
DT_ST_STM32_USART_4000E000_LABEL
|
||||
#define DT_USART_2_IRQ \
|
||||
DT_ST_STM32_USART_4000E000_IRQ_0
|
||||
#define DT_UART_STM32_USART_2_CLOCK_BITS \
|
||||
DT_ST_STM32_USART_4000E000_CLOCK_BITS
|
||||
#define DT_UART_STM32_USART_2_CLOCK_BUS \
|
||||
DT_ST_STM32_USART_4000E000_CLOCK_BUS
|
||||
#define DT_UART_STM32_USART_2_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_USART_4000E000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_USART_3_BASE_ADDRESS \
|
||||
DT_ST_STM32_USART_4000F000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_USART_3_BAUD_RATE \
|
||||
DT_ST_STM32_USART_4000F000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_USART_3_IRQ_PRI \
|
||||
DT_ST_STM32_USART_4000F000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_USART_3_NAME \
|
||||
DT_ST_STM32_USART_4000F000_LABEL
|
||||
#define DT_USART_3_IRQ \
|
||||
DT_ST_STM32_USART_4000F000_IRQ_0
|
||||
#define DT_UART_STM32_USART_3_CLOCK_BITS \
|
||||
DT_ST_STM32_USART_4000F000_CLOCK_BITS
|
||||
#define DT_UART_STM32_USART_3_CLOCK_BUS \
|
||||
DT_ST_STM32_USART_4000F000_CLOCK_BUS
|
||||
#define DT_UART_STM32_USART_3_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_USART_4000F000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_UART_4_BASE_ADDRESS \
|
||||
DT_ST_STM32_UART_40010000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_UART_4_BAUD_RATE \
|
||||
DT_ST_STM32_UART_40010000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_UART_4_IRQ_PRI \
|
||||
DT_ST_STM32_UART_40010000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_UART_4_NAME \
|
||||
DT_ST_STM32_UART_40010000_LABEL
|
||||
#define DT_UART_4_IRQ \
|
||||
DT_ST_STM32_UART_40010000_IRQ_0
|
||||
#define DT_UART_STM32_UART_4_CLOCK_BITS \
|
||||
DT_ST_STM32_UART_40010000_CLOCK_BITS
|
||||
#define DT_UART_STM32_UART_4_CLOCK_BUS \
|
||||
DT_ST_STM32_UART_40010000_CLOCK_BUS
|
||||
#define DT_UART_STM32_UART_4_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_UART_40010000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_UART_5_BASE_ADDRESS \
|
||||
DT_ST_STM32_UART_40011000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_UART_5_BAUD_RATE \
|
||||
DT_ST_STM32_UART_40011000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_UART_5_IRQ_PRI \
|
||||
DT_ST_STM32_UART_40011000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_UART_5_NAME \
|
||||
DT_ST_STM32_UART_40011000_LABEL
|
||||
#define DT_UART_5_IRQ \
|
||||
DT_ST_STM32_UART_40011000_IRQ_0
|
||||
#define DT_UART_STM32_UART_5_CLOCK_BITS \
|
||||
DT_ST_STM32_UART_40011000_CLOCK_BITS
|
||||
#define DT_UART_STM32_UART_5_CLOCK_BUS \
|
||||
DT_ST_STM32_UART_40011000_CLOCK_BUS
|
||||
#define DT_UART_STM32_UART_5_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_UART_40011000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_USART_6_BASE_ADDRESS \
|
||||
DT_ST_STM32_USART_44003000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_USART_6_BAUD_RATE \
|
||||
DT_ST_STM32_USART_44003000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_USART_6_IRQ_PRI \
|
||||
DT_ST_STM32_USART_44003000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_USART_6_NAME \
|
||||
DT_ST_STM32_USART_44003000_LABEL
|
||||
#define DT_USART_6_IRQ \
|
||||
DT_ST_STM32_USART_44003000_IRQ_0
|
||||
#define DT_UART_STM32_USART_6_CLOCK_BITS \
|
||||
DT_ST_STM32_USART_44003000_CLOCK_BITS
|
||||
#define DT_UART_STM32_USART_6_CLOCK_BUS \
|
||||
DT_ST_STM32_USART_44003000_CLOCK_BUS
|
||||
#define DT_UART_STM32_USART_6_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_USART_40003000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_UART_7_BASE_ADDRESS \
|
||||
DT_ST_STM32_UART_40018000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_UART_7_BAUD_RATE \
|
||||
DT_ST_STM32_UART_40018000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_UART_7_IRQ_PRI \
|
||||
DT_ST_STM32_UART_40018000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_UART_7_NAME \
|
||||
DT_ST_STM32_UART_40018000_LABEL
|
||||
#define DT_UART_7_IRQ \
|
||||
DT_ST_STM32_UART_40018000_IRQ_0
|
||||
#define DT_UART_STM32_UART_7_CLOCK_BITS \
|
||||
DT_ST_STM32_UART_40018000_CLOCK_BITS
|
||||
#define DT_UART_STM32_UART_7_CLOCK_BUS \
|
||||
DT_ST_STM32_UART_40018000_CLOCK_BUS
|
||||
#define DT_UART_STM32_UART_7_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_UART_40018000_HW_FLOW_CONTROL
|
||||
|
||||
#define DT_UART_STM32_UART_8_BASE_ADDRESS \
|
||||
DT_ST_STM32_UART_40019000_BASE_ADDRESS
|
||||
#define DT_UART_STM32_UART_8_BAUD_RATE \
|
||||
DT_ST_STM32_UART_40019000_CURRENT_SPEED
|
||||
#define DT_UART_STM32_UART_8_IRQ_PRI \
|
||||
DT_ST_STM32_UART_40019000_IRQ_0_PRIORITY
|
||||
#define DT_UART_STM32_UART_8_NAME \
|
||||
DT_ST_STM32_UART_40019000_LABEL
|
||||
#define DT_UART_8_IRQ \
|
||||
DT_ST_STM32_UART_40019000_IRQ_0
|
||||
#define DT_UART_STM32_UART_8_CLOCK_BITS \
|
||||
DT_ST_STM32_UART_40019000_CLOCK_BITS
|
||||
#define DT_UART_STM32_UART_8_CLOCK_BUS \
|
||||
DT_ST_STM32_UART_40019000_CLOCK_BUS
|
||||
#define DT_UART_STM32_UART_8_HW_FLOW_CONTROL \
|
||||
DT_ST_STM32_UART_40019000_HW_FLOW_CONTROL
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -42,6 +42,10 @@
|
|||
#include <stm32mp1xx_ll_system.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32mp1xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32MP1SOC_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue