[U-Boot] [PATCH v1 0/6] Update stm32x7 serial driver

patrice.chotard at st.com patrice.chotard at st.com
Wed Sep 27 13:44:47 UTC 2017


From: Patrice Chotard <patrice.chotard at st.com>

This series update the serial_stm32x7 driver used by both STM32F7 and STM32H7 SoCs :
	_ clean the code by using BIT and GENMASK macro
	_ remove useless CLK and OF_CONTROL flags
	_ add fifo support for H7
	_ introduce STM32F4 support

Currently, STM32F4 uses a dedicated serial driver drivers/serial/serial_stm32.c.
whereas STM32F7 and STM32H7 uses drivers/serial/serial/serial_stm32x7.c .
There is no reason to have 2 separate serial driver for STM32 SoCs family.

It's the first step to prepare STM32F4 conversion to driver model and 
device tree support. Hence this conversion will be done, serial_stm32x7.c 
driver will support alls SoCs (ie F4/F7 and H7) it will be then renamed with 
the generic name serial_stm32.c

Patrice Chotard (6):
  serial: stm32x7: cleanup code
  serial: stm32x7: remove stm32f7-usart and stm32h7-usart compatible
  serial: stm32x7: prepare the ground to STM32F4 support
  serial: stm32x7: add fifo support for STM32H7
  serial: stm32x7: add STM32F4 support
  serial: stm32x7: remove useless CONFIG_CLK and OF_CONTROL flag

 arch/arm/dts/stm32h743.dtsi     |  4 +-
 drivers/serial/Kconfig          |  4 +-
 drivers/serial/serial_stm32x7.c | 84 ++++++++++++++++++++++-------------------
 drivers/serial/serial_stm32x7.h | 71 +++++++++++++++++++++++-----------
 4 files changed, 99 insertions(+), 64 deletions(-)

-- 
1.9.1



More information about the U-Boot mailing list