Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Maxime Ripard | bf8940d | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Broadcom Corporation. |
| 4 | * Copyright 2015 Free Electrons. |
Maxime Ripard | bf8940d | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
Alex Kiernan | d1a119d | 2018-05-29 15:30:48 +0000 | [diff] [blame^] | 7 | /** |
| 8 | * fastboot_nand_flash_write() - Write image to NAND for fastboot |
| 9 | * |
| 10 | * @cmd: Named device to write image to |
| 11 | * @download_buffer: Pointer to image data |
| 12 | * @download_bytes: Size of image data |
| 13 | * @response: Pointer to fastboot response buffer |
| 14 | */ |
| 15 | void fastboot_nand_flash_write(const char *cmd, void *download_buffer, |
| 16 | unsigned int download_bytes, char *response); |
| 17 | /** |
| 18 | * fastboot_nand_flash_erase() - Erase NAND for fastboot |
| 19 | * |
| 20 | * @cmd: Named device to erase |
| 21 | * @response: Pointer to fastboot response buffer |
| 22 | */ |
| 23 | void fastboot_nand_erase(const char *cmd, char *response); |