[U-Boot] [PATCH v2 09/14] fastboot: Implement NAND backend
Tom Rini
trini at konsulko.com
Tue Oct 20 21:46:36 CEST 2015
On Thu, Oct 15, 2015 at 02:34:17PM +0200, Maxime Ripard wrote:
> So far the fastboot code was only supporting MMC-backed devices for its
> flashing operations (flash and erase).
>
> Add a storage backend for NAND-backed devices.
>
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
This is mutually exclusive with MMC support, right? If so, it's not
quite written that way in the #ifdef's so I think it need to be down in
say:
> @@ -569,6 +572,11 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req)
> (void *)CONFIG_FASTBOOT_BUF_ADDR,
> download_bytes, response);
> #endif
> +#ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
> + fb_nand_flash_write(cmd, fastboot_flash_session_id,
> + (void *)CONFIG_FASTBOOT_BUF_ADDR,
> + download_bytes, response);
> +#endif
With #elif/#error "Fastboot enabled but without any backing store
support" and we drop the #error once this is Kconfig'zied.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151020/e107f3d9/attachment.sig>
More information about the U-Boot
mailing list