]> git.dujemihanovic.xyz Git - u-boot.git/commit
fastboot: Implement generic fastboot_set_reboot_flag
authorRoman Kovalivskyi <roman.kovalivskyi@globallogic.com>
Tue, 26 Jan 2021 20:54:56 +0000 (22:54 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 7 Feb 2021 18:22:54 +0000 (19:22 +0100)
commita362ce214f03f965b05a9a89997294773cd6e908
tree80477ab4d34c704714753e897e987bb2fe63b918
parentf80798122a726602a239ad7667164a89e98c8328
fastboot: Implement generic fastboot_set_reboot_flag

It is possible to implement fastboot_set_reboot_flag in a generic way
if BCB commands are turned on for a target. Using
bcb_set_reboot_reason allows to do this by simply passing string with
correct reboot reason that should be handled during next boot process.

If BCB are turned off, then bcb_set_reboot_reason would simply return
error, so it won't introduce any new behaviour for such targets.

Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
drivers/fastboot/fb_common.c