diff options
author | Luo Ji <ji.luo@nxp.com> | 2018-11-21 15:55:55 +0800 |
---|---|---|
committer | Luo Ji <ji.luo@nxp.com> | 2018-11-22 11:02:09 +0800 |
commit | f39aa82a3dbcab9ac0807b794e524c9226fdf69a (patch) | |
tree | 3d09f5c426dace1f5e6a00ecddf26652cbbba7f3 /drivers | |
parent | e26db8caf2c7ed554a3496df3b90f9efcb76cf5f (diff) |
MA-13487 Refine fsl avb functions
Too many macros are used in fsl_avbkey.c and
make it difficult to maintain.
This patch made some refine by:
1. Move all avb/atx operations to fsl_avb.c.
2. Refine the functions logic.
3. Drop some unsupported conditions/functions.
Test: build and boot on
imx8qm_mek/imx8mq_evk/imx6qp_sabresd/imx7d_pico/imx8m_aiy.
Change-Id: I5c99732acfc47d53cdf188d69223983777e577f4
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index b4e9984353..0962346005 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -933,18 +933,6 @@ static void process_flash_mmc(const char *cmdbuf) { if (download_bytes) { struct fastboot_ptentry *ptn; -#if defined(AVB_RPMB) && !defined(CONFIG_ARM64) - if (!strcmp_l1(FASTBOOT_PARTITION_AVBKEY, cmdbuf)) { - printf("pubkey len %d\n", download_bytes); - if (avbkey_init(interface.transfer_buffer, download_bytes) != 0) { - fastboot_fail("fail to Write partition"); - } else { - printf("init 'avbkey' DONE!\n"); - fastboot_okay("OKAY"); - } - return; - } -#endif /* Next is the partition name */ ptn = fastboot_flash_find_ptn(cmdbuf); |