]> git.baikalelectronics.ru Git - uboot.git/commit
remoteproc: elf_loader: Add elf resource table load support
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 30 Oct 2019 13:38:28 +0000 (14:38 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jan 2020 16:13:25 +0000 (11:13 -0500)
commit546a48349cd2c090e503c7cd6a3f968e74abeb30
tree6e4b28fe66c8faa4b40be12327b0ac87c97ece75
parentac37a936e99086a920dcd596fec83ad86597e3f6
remoteproc: elf_loader: Add elf resource table load support

Add rproc_elf_load_rsc_table(), which searches for a resource table in
an elf64/elf32 image, and if found, copies it to device memory.
Add also the elf32 and elf64 variants of this API.
Add a test for this.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/remoteproc/rproc-elf-loader.c
include/remoteproc.h
test/dm/remoteproc.c