[PATCH v2 2/3] reboot-mode: read the boot mode from GPIOs status