From patchwork Mon Jan 13 05:54:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 239526 List-Id: U-Boot discussion From: j-keerthy at ti.com (Keerthy) Date: Mon, 13 Jan 2020 11:24:44 +0530 Subject: [PATCH v2 0/9]k3: Add support for loading main_r5fss0_core0 Message-ID: <20200113055453.8812-1-j-keerthy@ti.com> This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c Faiz Abbas (1): configs: j721e_evm_r5: Add configs for environment in eMMC Keerthy (8): lib: elf: Move the generic elf loading/validating functions to lib arm: k3: Add support for loading non linux remote cores armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM armv7R: K3: Add support for jumping to firmware arm: dts: k3-j721e-r5: Add fs_loader node arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 configs: j721e_evm_r5: Enable R5F remoteproc support .../arm/dts/k3-j721e-r5-common-proc-board.dts | 20 ++ arch/arm/mach-k3/common.c | 106 +++++++- arch/arm/mach-k3/common.h | 2 + arch/arm/mach-k3/j721e_init.c | 34 +++ arch/arm/mach-k3/r5_mpu.c | 4 +- cmd/Kconfig | 1 + cmd/elf.c | 229 ---------------- configs/j721e_evm_a72_defconfig | 3 + configs/j721e_evm_r5_defconfig | 4 + include/configs/j721e_evm.h | 10 + include/elf.h | 4 + lib/Kconfig | 3 + lib/Makefile | 1 + lib/elf.c | 256 ++++++++++++++++++ 14 files changed, 436 insertions(+), 241 deletions(-) create mode 100644 lib/elf.c