summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHaoran.Wang <elven.wang@nxp.com>2020-02-26 08:45:13 +0800
committerJi Luo <ji.luo@nxp.com>2020-05-15 17:34:42 +0800
commit75bf0ad03bda8c7cecae5b737257d18910af95e1 (patch)
tree75e4f76d3f97df5650991dc1c9466c48ddec0ed2 /net
parent5b184052ceff17a74523a4097990d320e5103466 (diff)
MA-16457-2 support reboot-fastboot command in u-boot
Android implement the userspace fastboot in Android Recovery. Follow Google's spec, added below 2 fastboot command support: * fastboot getvar is-userspace * fastboot reboot fastboot TEST: fastboot commands. Change-Id: Ib6047413be0a45b3c00626cdb8594809eb8a2b6b Signed-off-by: Haoran.Wang <elven.wang@nxp.com> (cherry picked from commit 314bded076dfc3e544cc7094ce3f6c4c330be4dd)
Diffstat (limited to 'net')
-rw-r--r--net/fastboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/fastboot.c b/net/fastboot.c
index 8afc5529cd..b8825a460b 100644
--- a/net/fastboot.c
+++ b/net/fastboot.c
@@ -226,6 +226,9 @@ static void fastboot_send(struct fastboot_header header, char *fastboot_data,
case FASTBOOT_COMMAND_REBOOT:
case FASTBOOT_COMMAND_REBOOT_BOOTLOADER:
+#ifdef CONFIG_ANDROID_RECOVERY
+ case FASTBOOT_COMMAND_RECOVERY_FASTBOOT:
+#endif
do_reset(NULL, 0, 0, NULL);
break;
}