fastboot: add support for reboot-bootloader command
authorAlexey Firago <alexey_firago@mentor.com>
Wed, 25 Feb 2015 14:10:47 +0000 (17:10 +0300)
committerLukasz Majewski <l.majewski@samsung.com>
Tue, 14 Apr 2015 08:19:05 +0000 (10:19 +0200)
commite2ec3e461250fc82781c8a83387c140c6fc30a5a
tree07f8e92a3773a5ba6aa0e820135901e85dddc3e6
parent8a41802f21cc270cb00ac7dc1263a4c136c9a31c
fastboot: add support for reboot-bootloader command

The "fastboot reboot-bootloader" command is defined to
re-enter into fastboot mode after rebooting into
bootloader. This command is usually used after updating
bootloader via fastboot.

This commit implements only a generic side of the
command - setting of the reset flag and then resetting.
Setting of the reset flag is implemented using __weak
fb_set_reboot_flag() function. The actual setting and
checking of the reset flag should be implemented by
a boot script and/or board/SoC specific code.

Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
Tested-by: Steve Rae <srae@broadcom.com>
[Test HW: bcm28155_ap board]
drivers/usb/gadget/f_fastboot.c