mbox series

[U-Boot,v2,0/6] remoteproc: add elf resource table loader

Message ID 1572442713-26353-1-git-send-email-fabien.dessenne@st.com
Headers show
Series remoteproc: add elf resource table loader | expand

Message

Fabien DESSENNE Oct. 30, 2019, 1:38 p.m. UTC
Add some helpers that can be called by the drivers to load the firmware
resource table from an elf32 / elf64 image.
The stm32 remoteproc driver makes use of it, to load the resource table before
the elf image itself.

Changes since v1:
-Do not fixup the DeviceTree to track the stm32 coprocessor state. Instead of
 this, use a dedicated register.

Fabien Dessenne (6):
  remoteproc: elf_loader: Add elf resource table load support
  stm32mp1: declare backup registers for coprocessor
  stm32mp1: reset coprocessor status at cold boot
  remoteproc: stm32: track the coprocessor state in a backup register
  stm32mp1: remove copro_state environment variable
  remoteproc: stm32: load resource table from firmware

 arch/arm/mach-stm32mp/cpu.c                |   7 +
 arch/arm/mach-stm32mp/include/mach/stm32.h |   9 +
 board/st/stm32mp1/stm32mp1.c               |   4 +-
 drivers/remoteproc/rproc-elf-loader.c      | 269 +++++++++++++++++++++++++++++
 drivers/remoteproc/stm32_copro.c           |  27 ++-
 include/remoteproc.h                       |  70 ++++++++
 test/dm/remoteproc.c                       |  91 ++++++++--
 7 files changed, 454 insertions(+), 23 deletions(-)