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>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user