summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fb_bcb_impl.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-02-08 10:54:01 -0500
committerTom Rini <trini@konsulko.com>2021-02-08 10:54:01 -0500
commit461b754a8b6e76382acb8985d7a64b82ba65b88d (patch)
tree6e30ab953d3044c395e5478f1cbba11782fdddcf /drivers/fastboot/fb_bcb_impl.c
parent3936fd998668846f77468d8f6a662e906920969c (diff)
parentadb5daf0905a190375e46d59f1244b13c3cdc640 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/fastboot/fb_bcb_impl.c')
-rw-r--r--drivers/fastboot/fb_bcb_impl.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/fastboot/fb_bcb_impl.c b/drivers/fastboot/fb_bcb_impl.c
deleted file mode 100644
index 89ec3601b6f..00000000000
--- a/drivers/fastboot/fb_bcb_impl.c
+++ /dev/null
@@ -1,43 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2020 GlobalLogic.
- * Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
- */
-
-#include <common.h>
-#include <fastboot.h>
-
-/**
- * fastboot_set_reboot_flag() - Set flag to indicate reboot-bootloader
- *
- * Set flag which indicates that we should reboot into the bootloader
- * following the reboot that fastboot executes after this function.
- *
- * This function should be overridden in your board file with one
- * which sets whatever flag your board specific Android bootloader flow
- * requires in order to re-enter the bootloader.
- */
-int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
-{
- char cmd[64];
-
- if (reason >= FASTBOOT_REBOOT_REASONS_COUNT)
- return -EINVAL;
-
- snprintf(cmd, sizeof(cmd), "bcb load %d misc",
- CONFIG_FASTBOOT_FLASH_MMC_DEV);
-
- if (run_command(cmd, 0))
- return -ENODEV;
-
- snprintf(cmd, sizeof(cmd), "bcb set command %s",
- fastboot_boot_cmds[reason]);
-
- if (run_command(cmd, 0))
- return -ENOEXEC;
-
- if (run_command("bcb store", 0))
- return -EIO;
-
- return 0;
-}