Skip to content

stm32mp1: migrate MTD and DFU configuration in Kconfig

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11board: stm32mp1: move board_get_mtdparts in st common directoryboard/dhelectronics/dh_stm32mp1/Makefile board/dhelectronics/dh_stm32mp1/board.c board/st/common/Makefile +2 more+120 -1911 reply
2/11board: stm32mp1: move set_dfu_alt_info in st common directoryboard/dhelectronics/dh_stm32mp1/Makefile board/dhelectronics/dh_stm32mp1/board.c board/st/common/Makefile +2 more+154 -1951 reply
3/11stm32mp1: dynamically build DFU_ALT_INFOboard/dhelectronics/dh_stm32mp1/Kconfig board/st/common/Kconfig board/st/common/stm32mp_dfu.c +1 more+110 -611 reply
4/11stm32mp1: move MTDPART configuration in Kconfigboard/st/common/Kconfig board/st/common/stm32mp_mtdparts.c include/configs/stm32mp1.h+104 -681 reply
5/11board: stm32mp1: reserve memory for OP-TEE in device treearch/arm/dts/stm32mp157a-dk1.dts arch/arm/dts/stm32mp157c-ed1.dts arch/arm/mach-stm32mp/dram_init.c +2 more+51 -41 reply
6/11stm32mp1: dynamically detect op-tee presencearch/arm/mach-stm32mp/Kconfig arch/arm/mach-stm32mp/fdt.c board/dhelectronics/dh_stm32mp1/board.c +4 more+15 -201 reply
7/11board: stm32mp1: use FDT address provided by TF-A at boot timearch/arm/mach-stm32mp/Makefile arch/arm/mach-stm32mp/boot_params.c+46 -01 reply
8/11configs: stm32mp1: remove optee defconfigboard/st/stm32mp1/MAINTAINERS configs/stm32mp15_optee_defconfig doc/board/st/stm32mp1.rst+7 -1601 reply
9/11board: stm32mp1: support boot from spi-nandarch/arm/mach-stm32mp/cpu.c arch/arm/mach-stm32mp/include/mach/stm32.h arch/arm/mach-stm32mp/spl.c +2 more+14 -21 reply
10/11board: stm32mp1: adapt MTD partition for BOOT from NOR or NANDboard/st/common/stm32mp_mtdparts.c+60 -211 reply
11/11doc: stm32mp1: update DFU support exampledoc/board/st/stm32mp1.rst+54 -611 reply

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchPatrice Chotard
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] stm32mp1: migrate MTD and DFU configuration in Kconfig

This serie migrate the dynamically build MTD (CONFIG_SYS_MTDPARTS_RUNTIME) and the DFU configuration (CONFIG_SET_DFU_ALT_INFO)
previously based on ENV variables to CONFIG_.

These patches reduce the size of the environment and allow to tune for each target with a specific defconfig file.

This serie also removes the TEE deconfig, replaced by a dynamic detection based on op-tee driver probe.

This serie depends on previous CONFIG migration proposed in
http://patchwork.ozlabs.org/project/uboot/list/?series=160899
- configs: migrate CONFIG_SET_DFU_ALT_INFO to defconfigs
- configs: migrate CONFIG_SYS_MTDPARTS_RUNTIME to defconfigs

Patrick Delaunay (11):
board: stm32mp1: move board_get_mtdparts in st common directory
board: stm32mp1: move set_dfu_alt_info in st common directory
stm32mp1: dynamically build DFU_ALT_INFO
stm32mp1: move MTDPART configuration in Kconfig
board: stm32mp1: reserve memory for OP-TEE in device tree
stm32mp1: dynamically detect op-tee presence
board: stm32mp1: use FDT address provided by TF-A at boot time
configs: stm32mp1: remove optee defconfig
board: stm32mp1: support boot from spi-nand
board: stm32mp1: adapt MTD partition for BOOT from NOR or NAND
doc: stm32mp1: update DFU support example

 arch/arm/dts/stm32mp157a-dk1.dts           |   5 +
 arch/arm/dts/stm32mp157c-ed1.dts           |   5 +
 arch/arm/mach-stm32mp/Kconfig              |  10 -
 arch/arm/mach-stm32mp/Makefile             |   1 +
 arch/arm/mach-stm32mp/boot_params.c        |  45 ++++
 arch/arm/mach-stm32mp/cpu.c                |   4 +
 arch/arm/mach-stm32mp/dram_init.c          |  18 ++
 arch/arm/mach-stm32mp/fdt.c                |  25 ++
 arch/arm/mach-stm32mp/include/mach/stm32.h |   3 +
 arch/arm/mach-stm32mp/spl.c                |   2 +
 board/dhelectronics/dh_stm32mp1/Kconfig    |   1 +
 board/dhelectronics/dh_stm32mp1/Makefile   |   3 +
 board/dhelectronics/dh_stm32mp1/board.c    | 143 +-----------
 board/st/common/Kconfig                    |  64 ++++++
 board/st/common/Makefile                   |   5 +
 board/st/common/stm32mp_dfu.c              | 225 ++++++++++++++++++
 board/st/common/stm32mp_mtdparts.c         | 157 +++++++++++++
 board/st/stm32mp1/MAINTAINERS              |   1 -
 board/st/stm32mp1/stm32mp1.c               | 253 +--------------------
 configs/stm32mp15_optee_defconfig          | 132 -----------
 configs/stm32mp15_trusted_defconfig        |   3 +
 doc/board/st/stm32mp1.rst                  | 147 +++++-------
 include/configs/stm32mp1.h                 |  64 +-----
 23 files changed, 634 insertions(+), 682 deletions(-)
 create mode 100644 arch/arm/mach-stm32mp/boot_params.c
 create mode 100644 board/st/common/stm32mp_dfu.c
 create mode 100644 board/st/common/stm32mp_mtdparts.c
 delete mode 100644 configs/stm32mp15_optee_defconfig
Signature · 1 line
2.17.1