uart: update stm32 uart to support LL clock control driver
After introducing STM32Cube based clock control driver for stm32 family, update stm32 serial driver to support it. Once supported across the whole family, a clean up will be done. Change-Id: I7100bc699e7918c8be71d58091da1860ab734e25 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
293b65f526
commit
8c4f2a353f
2 changed files with 25 additions and 4 deletions
|
@ -16,6 +16,9 @@
|
|||
struct uart_stm32_config {
|
||||
struct uart_device_config uconf;
|
||||
/* clock subsystem driving this peripheral */
|
||||
#if defined(CONFIG_CLOCK_CONTROL_STM32_CUBE)
|
||||
struct stm32_pclken pclken;
|
||||
#else
|
||||
#if defined(CONFIG_SOC_SERIES_STM32F1X) || \
|
||||
defined(CONFIG_SOC_SERIES_STM32F3X) || \
|
||||
defined(CONFIG_SOC_SERIES_STM32L4X)
|
||||
|
@ -23,6 +26,7 @@ struct uart_stm32_config {
|
|||
#elif defined(CONFIG_SOC_SERIES_STM32F4X)
|
||||
struct stm32f4x_pclken pclken;
|
||||
#endif
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
};
|
||||
|
||||
/* driver data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue