summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinter Wang <wente.wang@nxp.com>2016-11-15 17:02:31 +0800
committerWinter Wang <wente.wang@nxp.com>2016-11-16 18:26:46 +0800
commit1f5007c3c4a6152e9e5118969f1b6fa8abaee551 (patch)
treee33dd395a926858f82a8449af7dfbe152213d277
parent4363cc7e2be93cd32fb15790b6f3a1c4039df1c7 (diff)
downloadu-boot-imx-1f5007c3c4a6152e9e5118969f1b6fa8abaee551.zip
u-boot-imx-1f5007c3c4a6152e9e5118969f1b6fa8abaee551.tar.gz
u-boot-imx-1f5007c3c4a6152e9e5118969f1b6fa8abaee551.tar.bz2
MA-8986 fastboot: use FASTBOOT_PARTITION_AVBKEY instead of "avbkey"
use FASTBOOT_PARTITION_AVBKEY defined in fsl_fastboot.h Signed-off-by: Winter Wang <wente.wang@nxp.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 48fbee8..4e6cc74 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -907,10 +907,10 @@ static void process_flash_mmc(const char *cmdbuf, char *response)
struct fastboot_ptentry *ptn;
#ifdef CONFIG_AVB_SUPPORT
- if (!strcmp_l1("avbkey", cmdbuf)) {
+ if (!strcmp_l1(FASTBOOT_PARTITION_AVBKEY, cmdbuf)) {
printf("pubkey len %d\n", download_bytes);
if (avbkeyblb_init(interface.transfer_buffer, download_bytes,
- "avbkey") != 0) {
+ FASTBOOT_PARTITION_AVBKEY) != 0) {
sprintf(response, "FAIL: Write partition");
} else {
printf("init 'avbkey' DONE!\n");
@@ -2863,7 +2863,7 @@ static int do_fastboot_unlock(void)
#ifdef CONFIG_AVB_SUPPORT
printf("Start stored_rollback_index wipe process....\n");
- status = rbkidx_erase("avbkey");
+ status = rbkidx_erase(FASTBOOT_PARTITION_AVBKEY);
if (status < 0)
return status;
printf("Wipe stored_rollback_index completed.\n");