Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Broadcom Corporation. |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
Alex Kiernan | d5aa57c | 2018-05-29 15:30:53 +0000 | [diff] [blame] | 6 | #ifndef _FB_MMC_H_ |
| 7 | #define _FB_MMC_H_ |
| 8 | |
| 9 | /** |
| 10 | * fastboot_mmc_get_part_info() - Lookup eMMC partion by name |
| 11 | * |
| 12 | * @part_name: Named partition to lookup |
| 13 | * @dev_desc: Pointer to returned blk_desc pointer |
| 14 | * @part_info: Pointer to returned disk_partition_t |
| 15 | * @response: Pointer to fastboot response buffer |
| 16 | */ |
| 17 | int fastboot_mmc_get_part_info(char *part_name, struct blk_desc **dev_desc, |
| 18 | disk_partition_t *part_info, char *response); |
| 19 | |
Alex Kiernan | 32c2194 | 2018-05-29 15:30:48 +0000 | [diff] [blame] | 20 | /** |
| 21 | * fastboot_mmc_flash_write() - Write image to eMMC for fastboot |
| 22 | * |
| 23 | * @cmd: Named partition to write image to |
| 24 | * @download_buffer: Pointer to image data |
| 25 | * @download_bytes: Size of image data |
| 26 | * @response: Pointer to fastboot response buffer |
| 27 | */ |
| 28 | void fastboot_mmc_flash_write(const char *cmd, void *download_buffer, |
Alex Kiernan | d5aa57c | 2018-05-29 15:30:53 +0000 | [diff] [blame] | 29 | u32 download_bytes, char *response); |
Alex Kiernan | 32c2194 | 2018-05-29 15:30:48 +0000 | [diff] [blame] | 30 | /** |
| 31 | * fastboot_mmc_flash_erase() - Erase eMMC for fastboot |
| 32 | * |
| 33 | * @cmd: Named partition to erase |
| 34 | * @response: Pointer to fastboot response buffer |
| 35 | */ |
| 36 | void fastboot_mmc_erase(const char *cmd, char *response); |
Alex Kiernan | d5aa57c | 2018-05-29 15:30:53 +0000 | [diff] [blame] | 37 | #endif |