]> git.baikalelectronics.ru Git - uboot.git/commit
watchdog: rti_wdt: Add support for loading firmware
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 18 Sep 2021 06:17:55 +0000 (08:17 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Oct 2021 18:40:56 +0000 (14:40 -0400)
commitc0e3911fe4f94e80df4e983b46ae35057c29321f
treeb878cd058befb17537097050adc0d30a524acbe1
parentcf82d66ae7a2c981b71fb23a2556fa891e009d0c
watchdog: rti_wdt: Add support for loading firmware

To avoid the need of extra boot scripting on AM65x for loading a
watchdog firmware, add the required rproc init and loading logic for the
first R5F core to the watchdog start handler. In case the R5F cluster is
in lock-step mode, also initialize the second core. The firmware itself
is embedded into U-Boot binary to ease access to it and ensure it is
properly hashed in case of secure boot.

One possible firmware source is https://github.com/siemens/k3-rti-wdt.

The board is responsible for providing the firmware as additional
loadable via the U-Boot fit image. The driver will pick up its location
from /fit-images/k3-rti-wdt-firmware then.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
drivers/watchdog/Kconfig
drivers/watchdog/rti_wdt.c