summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorNandor Han <nandor.han@vaisala.com>2021-06-10 16:56:43 +0300
committerTom Rini <trini@konsulko.com>2021-07-23 10:16:39 -0400
commit2541ce2c1af87f74a9feb35a1cbfc20ff8d04e4b (patch)
tree916abd832f987163a13630c9442fc3857f9aeb8f /include/dm
parentf534d93cbf34f1d1762b04eb5680e84bef5e1fe1 (diff)
downloadu-boot-2541ce2c1af87f74a9feb35a1cbfc20ff8d04e4b.tar.gz
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>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/uclass-id.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index d800f679d5..9d474533ba 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -92,6 +92,7 @@ enum uclass_id {
UCLASS_PWRSEQ, /* Power sequence device */
UCLASS_QFW, /* QEMU firmware config device */
UCLASS_RAM, /* RAM controller */
+ UCLASS_REBOOT_MODE, /* Reboot mode */
UCLASS_REGULATOR, /* Regulator device */
UCLASS_REMOTEPROC, /* Remote Processor device */
UCLASS_RESET, /* Reset controller device */