The U-Boot project has just released version 2022.07 of the popular bootloader. This release includes a new feature, developed by Kynetics, that enables the use of the GPIO values in bootscripts.
The new feature ensures that:
- scripts can check success or failure of a GPIO read operation
- the GPIO value can be saved to a U-Boot env variable
The feature is enabled by the CONFIG_CMD_GPIO_READ and has the following syntax:
=> gpio read <variable-name> <gpio-pin>
The commit can be seen at: