On Thu, 10 Jun 2021 at 07:57, Nandor Han <[email protected]> wrote:
>
> 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 <[email protected]>
> ---
>  drivers/Kconfig                          |   2 +
>  drivers/Makefile                         |   1 +
>  drivers/reboot-mode/Kconfig              |  18 +++
>  drivers/reboot-mode/Makefile             |   7 ++
>  drivers/reboot-mode/reboot-mode-uclass.c | 134 +++++++++++++++++++++++
>  include/dm/uclass-id.h                   |   1 +
>  include/reboot-mode/reboot-mode.h        |  56 ++++++++++
>  7 files changed, 219 insertions(+)
>  create mode 100644 drivers/reboot-mode/Kconfig
>  create mode 100644 drivers/reboot-mode/Makefile
>  create mode 100644 drivers/reboot-mode/reboot-mode-uclass.c
>  create mode 100644 include/reboot-mode/reboot-mode.h
>

Reviewed-by: Simon Glass <[email protected]>

Reply via email to