/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c
static void wipe_all_userdata(void)
{
char response[FASTBOOT_RESPONSE_LEN];
/* Erase all user data */
printf("Start userdata wipe process....\n");
/* Erase /data partition */
fastboot_wipe_data_partition();
#if defined (CONFIG_ANDROID_SUPPORT) || defined (CONFIG_ANDROID_AUTO_SUPPORT)
/* Erase the misc partition. */
process_erase_mmc(FASTBOOT_PARTITION_MISC, response);
#endif
#ifndef CONFIG_ANDROID_AB_SUPPORT
/* Erase the cache partition for legacy imx6/7 */
process_erase_mmc(FASTBOOT_PARTITION_CACHE, response);
#endif
#if defined(AVB_RPMB