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

Nandor Han nandor.han at vaisala.com
Thu Jan 30 12:49:03 CET 2020


Hi,
   Any comments about this?

Regards,
     Nandor

On 2019-11-12 11:13, Han Nandor 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 at 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 | 132 +++++++++++++++++++++++
>   include/dm/uclass-id.h                   |   1 +
>   include/reboot-mode/reboot-mode.h        |  56 ++++++++++
>   7 files changed, 217 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
> 


<snip>


More information about the U-Boot mailing list