Re: [PATCH v4 1/3] reboot-mode: add support for reboot mode control

Simon Glass
2021-06-26T18:31:04Z

On Thu, 10 Jun 2021 at 07:57, Nandor Han <nandor.han@vaisala.com> 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 <nandor.han@vaisala.com>
> ---
> 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 <sjg@chromium.org>