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