[U-Boot] [PATCH 0/9] stm32f7 clock improvements

patrice.chotard at st.com patrice.chotard at st.com
Tue Jul 18 07:29:01 UTC 2017


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

The objective of this series is to prepare the ground for future STM32H7 SoC
introduction. As STM32F7 and STM32H7 SoCs shared several blocks (serial, qspi,
gpio ....) some rework is needed to made some drivers more generic. Some of these
driver are using proprietatry clock glue which need to be replace by clock
framework one, which also implies stm32f7 clock driver rework.

Here are the steps:
	_ align stm32f7 clock DT declaration with kernel one
	_ retrieve RCC base address from DT 
	_ replace the stm32f7 clock_get() glue function by clock framework clk_get_rate() 
	  inside several driver :
	    _ drivers/spi/stm32_qspi.c
	    _ drivers/serial/serial_stm32x7.c
	_ remove proprietary clock glue

Patrice Chotard (9):
  ARM: DTS: stm32: align DT clock declaration with kernel
  clk: stm32f7: add static for configure_clocks()
  clk: stm32f7: get RCC base address from DT
  clk: stm32f7: add clock .get_rate() callback
  clk: stm32f7: cleanup clocks unused definitions
  serial: stm32x7: migrate serial struct to driver
  serial: stm32x7: add clk_get_rate() support
  spi: stm32_qspi: add clk_get_rate() support
  clk: stm32f7: remove clock_get()

 arch/arm/dts/stm32f746.dtsi                      |  30 +++---
 arch/arm/include/asm/arch-stm32f7/rcc.h          |  24 +----
 arch/arm/include/asm/arch-stm32f7/stm32.h        |  13 ---
 arch/arm/include/asm/arch-stm32f7/stm32_periph.h |  15 ---
 board/st/stm32f746-disco/stm32f746-disco.c       |   1 -
 drivers/clk/clk_stm32f7.c                        | 100 +++++++++++++-------
 drivers/serial/serial_stm32x7.c                  |  18 ++--
 drivers/serial/serial_stm32x7.h                  |   5 +
 drivers/spi/stm32_qspi.c                         |  10 +-
 include/dm/platform_data/serial_stm32x7.h        |  17 ----
 include/dt-bindings/clock/stm32fx-clock.h        |  59 ++++++++++++
 include/dt-bindings/mfd/stm32f7-rcc.h            | 112 +++++++++++++++++++++++
 12 files changed, 276 insertions(+), 128 deletions(-)
 delete mode 100644 include/dm/platform_data/serial_stm32x7.h
 create mode 100644 include/dt-bindings/clock/stm32fx-clock.h
 create mode 100644 include/dt-bindings/mfd/stm32f7-rcc.h

-- 
1.9.1



More information about the U-Boot mailing list