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)
commitffcb880de81c7a8fb4328b415bf95cae57bc6b2b
tree6e4b28fe66c8faa4b40be12327b0ac87c97ece75
parent152781d4641e0e4c37b3a32f699cf99aeec877c8
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