diff options
author | LiGang <b41990@freescale.com> | 2013-01-09 13:31:27 +0800 |
---|---|---|
committer | LiGang <b41990@freescale.com> | 2013-01-09 13:53:58 +0800 |
commit | 2f9091b8fe4b8931d9289ae0a35abd2f8407db73 (patch) | |
tree | b6924b3dda036daaa812f5930092c6d07c108799 /drivers/fastboot/fastboot.c | |
parent | 7e5dab8c5310f82637773255d475a9967e38284b (diff) | |
download | u-boot-imx-2f9091b8fe4b8931d9289ae0a35abd2f8407db73.zip u-boot-imx-2f9091b8fe4b8931d9289ae0a35abd2f8407db73.tar.gz u-boot-imx-2f9091b8fe4b8931d9289ae0a35abd2f8407db73.tar.bz2 |
ENGR00239366: Add support for nand storage in quick fastboot
1. Add more check before writing image to storage
2. Fix failure when using nand storagea
Signed-off-by: LiGang <b41990@freescale.com>
Diffstat (limited to 'drivers/fastboot/fastboot.c')
-rw-r--r-- | drivers/fastboot/fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fastboot/fastboot.c b/drivers/fastboot/fastboot.c index fe0b6b8..790334b 100644 --- a/drivers/fastboot/fastboot.c +++ b/drivers/fastboot/fastboot.c @@ -863,7 +863,7 @@ static void fastboot_cmd_handler(u32 len, u8 *recvbuf) } } else if (memcmp(recvbuf, "flash:", 6) == 0) { if (g_fastboot_datalen == - fastboot_write_mmc(recvbuf+6, g_fastboot_datalen)) { + fastboot_write_storage(recvbuf+6, g_fastboot_datalen)) { DBG_ALWS("Fastboot write OK, send OKAY...\n"); sprintf((char *)g_fastboot_sendbuf, "OKAY"); udc_send_data(g_fastboot_inep_index, g_fastboot_sendbuf, |