uart: stm32: Add support for STM32L4X

Deal with STM32L4X additions for clock and interrupt handling to the
uart driver.

Change-Id: I6e8dafb132dafea54b8f31a3a5cb6e35a207574d
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Erwan Gouriou 2016-11-17 10:00:49 -06:00 committed by Kumar Gala
commit 0bf6c3860d
2 changed files with 17 additions and 5 deletions

View file

@ -15,7 +15,7 @@
*/
/**
* @brief Driver for UART port on STM32F10x, STM32F40x family processor.
* @brief Driver for UART port on STM32 family processor.
*
*/
@ -26,9 +26,9 @@
struct uart_stm32_config {
struct uart_device_config uconf;
/* clock subsystem driving this peripheral */
#ifdef CONFIG_SOC_SERIES_STM32F1X
#if defined(CONFIG_SOC_SERIES_STM32F1X) || defined(CONFIG_SOC_SERIES_STM32L4X)
clock_control_subsys_t clock_subsys;
#elif CONFIG_SOC_SERIES_STM32F4X
#elif defined(CONFIG_SOC_SERIES_STM32F4X)
struct stm32f4x_pclken pclken;
#endif
};