[U-Boot] [PATCH 00/11] Extend clk_stm32f7 driver

Vikas Manocha vikas.manocha at st.com
Wed Nov 15 17:35:23 UTC 2017


LGTM.

Cheers,
Vikas

On 11/15/2017 04:14 AM, patrice.chotard at st.com wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
> 
> It's the second step to prepare STM32F4 conversion to driver model and 
> device tree support. STM32F4 and STM32F7 RCC IPs are similar, differences
> between these 2 SoCs can be managed with different compatible string and
> allows to use a common clock driver. 
> 
> This series update the clk_stm32f7 driver :
> 	_ retrieve PWR IP base address from DT instead of using hardcoded value.
> 	_ update compatible string to manage differences between STM32F4 and
> 	  STM32F7
> 	_ introduce STM32F4 support.
> 	_ enable RCC MFD support which allows reset support for STM32F7/F4.
> 	_ add MMC clock configuration for MMC usag for STM32F4/F7.
> 	_ migrate some defines/struct to common include/stm32_rcc.h to 
> 	  factorize code between STM32F4/F7.
> 
> Patrice Chotard (11):
>   ARM: DTS: stm32: add pwrcfg node for stm32f746
>   clk: stm32f7: retrieve PWR base address from DT
>   clk: stm32f7: add dedicated STM32F7 compatible string
>   ARM: DTS: stm32: update rcc compatible for STM32F746
>   clk: stm32f7: add STM32F4 support
>   clk: stm32f7: rename clk_stm32f7.c to clk_stm32f.c
>   clk: stm32fx: migrate define from rcc.h to driver
>   configs: stm32f746-disco: enable MISC/DM_RESET/STM32_RESET and
>     STM32_RCC
>   dm: misc: bind STM32F4/F7 clock from rcc MFD driver
>   clk: clk_stm32fx: add clock configuration for mmc usage
>   stm32: migrate clock structs in include/stm32_rcc.h
> 
>  arch/arm/dts/stm32f7-u-boot.dtsi                   |   4 +
>  arch/arm/dts/stm32f746.dtsi                        |   9 +-
>  arch/arm/include/asm/arch-stm32f4/stm32.h          |  35 ---
>  arch/arm/include/asm/arch-stm32f4/stm32_pwr.h      |  23 ++
>  arch/arm/include/asm/arch-stm32f7/rcc.h            |  31 ---
>  arch/arm/include/asm/arch-stm32f7/stm32.h          |  41 ----
>  arch/arm/include/asm/arch-stm32f7/stm32_pwr.h      |  25 ++
>  arch/arm/mach-stm32/stm32f4/clock.c                |  27 +-
>  arch/arm/mach-stm32/stm32f4/timer.c                |   1 +
>  arch/arm/mach-stm32/stm32f7/timer.c                |   1 +
>  board/st/stm32f429-discovery/stm32f429-discovery.c |   1 +
>  configs/stm32f746-disco_defconfig                  |   4 +
>  drivers/clk/Kconfig                                |   8 +
>  drivers/clk/Makefile                               |   2 +-
>  drivers/clk/{clk_stm32f7.c => clk_stm32f.c}        | 272 +++++++++++++++------
>  drivers/misc/stm32_rcc.c                           |  42 +++-
>  include/dt-bindings/mfd/stm32f7-rcc.h              |   1 +
>  include/stm32_rcc.h                                |  91 +++++++
>  18 files changed, 401 insertions(+), 217 deletions(-)
>  create mode 100644 arch/arm/include/asm/arch-stm32f4/stm32_pwr.h
>  delete mode 100644 arch/arm/include/asm/arch-stm32f7/rcc.h
>  create mode 100644 arch/arm/include/asm/arch-stm32f7/stm32_pwr.h
>  rename drivers/clk/{clk_stm32f7.c => clk_stm32f.c} (56%)
>  create mode 100644 include/stm32_rcc.h
> 


More information about the U-Boot mailing list