serial: stm32: remove bits related to !HAS_DTS
Now that all STM32 platforms are using device tree we can remove the handling for !HAS_DTS from the serial driver. Change-Id: Ifafc283f2509dd9a438f321e0b647720d4f13810 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
fd733ca8f1
commit
621ba596b9
2 changed files with 0 additions and 91 deletions
|
@ -36,12 +36,6 @@
|
|||
#define UART_STRUCT(dev) \
|
||||
((USART_TypeDef *)(DEV_CFG(dev))->uconf.base)
|
||||
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS USART1_BASE
|
||||
#define CONFIG_UART_STM32_PORT_2_BASE_ADDRESS USART2_BASE
|
||||
#define CONFIG_UART_STM32_PORT_3_BASE_ADDRESS USART3_BASE
|
||||
#endif
|
||||
|
||||
#define TIMEOUT 1000
|
||||
|
||||
static int uart_stm32_poll_in(struct device *dev, unsigned char *c)
|
||||
|
@ -366,18 +360,6 @@ DEVICE_AND_API_INIT(uart_stm32_1, CONFIG_UART_STM32_PORT_1_NAME,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void uart_stm32_irq_config_func_1(struct device *dev)
|
||||
{
|
||||
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
#define PORT_1_IRQ STM32F1_IRQ_USART1
|
||||
#elif CONFIG_SOC_SERIES_STM32F3X
|
||||
#define PORT_1_IRQ STM32F3_IRQ_USART1
|
||||
#elif CONFIG_SOC_SERIES_STM32F4X
|
||||
#define PORT_1_IRQ STM32F4_IRQ_USART1
|
||||
#elif CONFIG_SOC_SERIES_STM32L4X
|
||||
#define PORT_1_IRQ STM32L4_IRQ_USART1
|
||||
#endif
|
||||
#endif
|
||||
IRQ_CONNECT(PORT_1_IRQ,
|
||||
CONFIG_UART_STM32_PORT_1_IRQ_PRI,
|
||||
uart_stm32_isr, DEVICE_GET(uart_stm32_1),
|
||||
|
@ -430,18 +412,6 @@ DEVICE_AND_API_INIT(uart_stm32_2, CONFIG_UART_STM32_PORT_2_NAME,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void uart_stm32_irq_config_func_2(struct device *dev)
|
||||
{
|
||||
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
#define PORT_2_IRQ STM32F1_IRQ_USART2
|
||||
#elif CONFIG_SOC_SERIES_STM32F3X
|
||||
#define PORT_2_IRQ STM32F3_IRQ_USART2
|
||||
#elif CONFIG_SOC_SERIES_STM32F4X
|
||||
#define PORT_2_IRQ STM32F4_IRQ_USART2
|
||||
#elif CONFIG_SOC_SERIES_STM32L4X
|
||||
#define PORT_2_IRQ STM32L4_IRQ_USART2
|
||||
#endif
|
||||
#endif
|
||||
IRQ_CONNECT(PORT_2_IRQ,
|
||||
CONFIG_UART_STM32_PORT_2_IRQ_PRI,
|
||||
uart_stm32_isr, DEVICE_GET(uart_stm32_2),
|
||||
|
@ -493,17 +463,6 @@ DEVICE_AND_API_INIT(uart_stm32_3, CONFIG_UART_STM32_PORT_3_NAME,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void uart_stm32_irq_config_func_3(struct device *dev)
|
||||
{
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
#define PORT_3_IRQ STM32F1_IRQ_USART3
|
||||
#elif CONFIG_SOC_SERIES_STM32F3X
|
||||
#define PORT_3_IRQ STM32F3_IRQ_USART3
|
||||
#elif CONFIG_SOC_SERIES_STM32F4X
|
||||
#define PORT_3_IRQ STM32F4_IRQ_USART3
|
||||
#elif CONFIG_SOC_SERIES_STM32L4X
|
||||
#define PORT_3_IRQ STM32L4_IRQ_USART3
|
||||
#endif
|
||||
#endif
|
||||
IRQ_CONNECT(PORT_3_IRQ,
|
||||
CONFIG_UART_STM32_PORT_3_IRQ_PRI,
|
||||
uart_stm32_isr, DEVICE_GET(uart_stm32_3),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue