summaryrefslogtreecommitdiff
path: root/include/reboot-mode/reboot-mode-gpio.h
AgeCommit message (Collapse)Author
2025-12-05reboot-mode: Correct macro name from U_BOOT_DEVICE to U_BOOT_DRVINFOCibil Pankiras
The macro U_BOOT_DEVICE has been renamed to U_BOOT_DRVINFO. This patch updates the reference in reboot-mode-gpio.h. Signed-off-by: Cibil Pankiras <[email protected]>
2021-07-23reboot-mode: read the boot mode from GPIOs statusNandor Han
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>