]> git.dujemihanovic.xyz Git - u-boot.git/commit
reboot-mode: add support for reboot mode control
authorNandor Han <nandor.han@vaisala.com>
Thu, 10 Jun 2021 13:56:43 +0000 (16:56 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 14:16:39 +0000 (10:16 -0400)
commit2541ce2c1af87f74a9feb35a1cbfc20ff8d04e4b
tree916abd832f987163a13630c9442fc3857f9aeb8f
parentf534d93cbf34f1d1762b04eb5680e84bef5e1fe1
reboot-mode: add support for reboot mode control

A new driver uclass is created to handle the reboot mode control.

The new uclass driver is updating an environment variable with the
configured reboot mode. The mode is extracted from a map provided
at initialization time. The map contains a list of modes
and associated ids.

Signed-off-by: Nandor Han <nandor.han@vaisala.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/Kconfig
drivers/Makefile
drivers/reboot-mode/Kconfig [new file with mode: 0644]
drivers/reboot-mode/Makefile [new file with mode: 0644]
drivers/reboot-mode/reboot-mode-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/reboot-mode/reboot-mode.h [new file with mode: 0644]