1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

fastboot: Implement NAND backend

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@free-electrons.com>
This commit is contained in:
Maxime Ripard
2015-10-15 14:34:17 +02:00
committed by Tom Rini
parent 1f8690aa95
commit bf8940d35b
4 changed files with 223 additions and 1 deletions

11
include/fb_nand.h Normal file
View File

@@ -0,0 +1,11 @@
/*
* Copyright 2014 Broadcom Corporation.
* Copyright 2015 Free Electrons.
*
* SPDX-License-Identifier: GPL-2.0+
*/
void fb_nand_flash_write(const char *cmd, unsigned int session_id,
void *download_buffer, unsigned int download_bytes,
char *response);
void fb_nand_erase(const char *cmd, char *response);