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>
Showing
- drivers/Kconfig 2 additions, 0 deletionsdrivers/Kconfig
- drivers/Makefile 1 addition, 0 deletionsdrivers/Makefile
- drivers/reboot-mode/Kconfig 18 additions, 0 deletionsdrivers/reboot-mode/Kconfig
- drivers/reboot-mode/Makefile 7 additions, 0 deletionsdrivers/reboot-mode/Makefile
- drivers/reboot-mode/reboot-mode-uclass.c 134 additions, 0 deletionsdrivers/reboot-mode/reboot-mode-uclass.c
- include/dm/uclass-id.h 1 addition, 0 deletionsinclude/dm/uclass-id.h
- include/reboot-mode/reboot-mode.h 56 additions, 0 deletionsinclude/reboot-mode/reboot-mode.h
Loading
Please register or sign in to comment