The motivation for this series is to add imx-usb-loader support for i.MX8MP, but there are some by-catches as well. We recently introduced imx8mm_load_and_start_image_via_tfa() to simplify the board code. This series adds the same for i.MX8MP and integrates USB support in that function, so that all new boards using it get USB support for free. Also there are several cleanups and fixes for imx-usb-loader. Sascha Sascha Hauer (11): ARM: i.MX8M: Add romapi support ARM: i.MX8MP: Add common code to load image and jump to it via TF-A ARM: i.MX8MP-EVK: Use imx8mp_load_and_start_image_via_tfa() imx-usb-loader: Factor out common code to function imx-usb-loader: rename mxs functions imx-usb-loader: Add i.MX8MP support imx-usb-loader: drop some casting imx-usb-loader: Fix first stage length imx-usb-loader: simplify read_memory() imx-usb-loader: verify correct image length imx-usb-loader: drop some unnecessary casting Uwe Kleine-König (1): ARM: i.MX8MM: Prepare loading only piggydata in imx-usb-loader arch/arm/boards/nxp-imx8mp-evk/lowlevel.c | 34 +---- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/atf.c | 68 ++++++++- arch/arm/mach-imx/include/mach/romapi.h | 37 +++++ arch/arm/mach-imx/romapi.c | 44 ++++++ include/asm-generic/sections.h | 1 + include/soc/imx8m.h | 1 + scripts/imx/imx-usb-loader.c | 167 +++++++++++----------- 8 files changed, 233 insertions(+), 121 deletions(-) create mode 100644 arch/arm/mach-imx/include/mach/romapi.h create mode 100644 arch/arm/mach-imx/romapi.c -- 2.30.2