diff options
Diffstat (limited to 'drivers/usb/gadget/fastboot_lock_unlock.c')
-rw-r--r-- | drivers/usb/gadget/fastboot_lock_unlock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fastboot_lock_unlock.c b/drivers/usb/gadget/fastboot_lock_unlock.c index 307d927cdd..b575a78eef 100644 --- a/drivers/usb/gadget/fastboot_lock_unlock.c +++ b/drivers/usb/gadget/fastboot_lock_unlock.c @@ -38,6 +38,7 @@ #include "fastboot_lock_unlock.h" #include <fsl_fastboot.h> #include <memalign.h> +#include <asm/mach-imx/sys_proto.h> #ifdef CONFIG_IMX_TRUSTY_OS #include <trusty/libtipc.h> #include <asm/mach-imx/hab.h> @@ -476,6 +477,12 @@ FbLockEnableResult fastboot_lock_enable() { int mmc_id; FbLockEnableResult ret; + /* for imx6 and imx7 platforms, ignore presistdata partition + * for the convenience of using uuu + */ + if (is_mx6() || is_mx7() || is_mx7ulp()) + return FASTBOOT_UL_ENABLE; + bdata = (unsigned char *)memalign(ALIGN_BYTES, SECTOR_SIZE); if (bdata == NULL) return FASTBOOT_UL_ERROR; |