]> git.dujemihanovic.xyz Git - u-boot.git/commit
remoteproc: uclass: Add methods to load firmware to rproc and boot rproc
authorMD Danish Anwar <danishanwar@ti.com>
Thu, 21 Mar 2024 10:28:19 +0000 (15:58 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 22 Mar 2024 19:50:28 +0000 (15:50 -0400)
commitfb49d6c289d942ff7de309a5c5eaa37a7f4235db
tree5fc96316343c666c48f18c8ea6e46f118b8a7327
parentdf479dde31ed19af16551090a9fa99298bb7d40a
remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

Add APIs to set a firmware_name to a rproc and boot the rproc with the
same firmware.

Clients can call rproc_set_firmware() API to set firmware_name for a rproc
whereas rproc_boot() will load the firmware set by rproc_set_firmware() to
a buffer by calling request_firmware_into_buf(). rproc_boot() will then
load the firmware file to the remote processor and start the remote
processor.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Acked-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
drivers/remoteproc/Kconfig
drivers/remoteproc/rproc-uclass.c
include/remoteproc.h