diff options
author | Nandor Han <nandor.han@vaisala.com> | 2021-06-10 16:56:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-23 10:16:39 -0400 |
commit | f9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2 (patch) | |
tree | 9058e40bb65185f1367697ce8cf33479a23362dc /configs/sandbox_defconfig | |
parent | 2541ce2c1af87f74a9feb35a1cbfc20ff8d04e4b (diff) | |
download | u-boot-f9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2.tar.gz u-boot-f9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2.tar.bz2 u-boot-f9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2.zip |
reboot-mode: read the boot mode from GPIOs status
A use case for controlling the boot mode is when the user wants
to control the device boot by pushing a button without needing to
go in user-space.
Add a new backed for reboot mode where GPIOs are used to control the
reboot-mode. The driver is able to scan a predefined list of GPIOs
and return the magic value. Having the modes associated with
the magic value generated based on the GPIO values, allows the
reboot mode uclass to select the proper mode.
Signed-off-by: Nandor Han <nandor.han@vaisala.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/sandbox_defconfig')
-rw-r--r-- | configs/sandbox_defconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 1655bb1e8a..6931b176ed 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -290,3 +290,5 @@ CONFIG_TEST_FDTDEC=y CONFIG_UNIT_TEST=y CONFIG_UT_TIME=y CONFIG_UT_DM=y +CONFIG_DM_REBOOT_MODE=y +CONFIG_DM_REBOOT_MODE_GPIO=y |