diff options
| author | Tom Rini <[email protected]> | 2024-10-25 08:35:56 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-25 08:35:56 -0600 |
| commit | e8a45b50bbf9d6eb5903ce00285dcb6094715d91 (patch) | |
| tree | fb8c5d9152bbcdf5d9dc9a45cef85cc763f24a00 /include/android_ab.h | |
| parent | 08ae12be8509daf3d1c5a148b8a50c0ffb6457c2 (diff) | |
| parent | 21e7fa0e3ac599737cd235bb5233765e8a1b8b0f (diff) | |
Merge tag 'u-boot-dfu-20241025' of https://source.denx.de/u-boot/custodians/u-boot-dfu
CI: https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/22962
Dfu:
- Rely on device tree for spi speed/mode on spi flash
Android Image:
- Fix booting on platforms having > 4GiB of memory
- Decompress boot image to kernel_addr_r when compression is enabled
- Honor CONFIG_SYS_LOAD_ADDR when mkbootimg uses default address
Bcb:
- Rework bcb command to use U_BOOT_LONGHELP
- Move ab_select cmd to bcb cmd
- Implement ab_dump command in bcb
- bcb: Write '_<slot>' instead of '<slot>' to misc partition
Diffstat (limited to 'include/android_ab.h')
| -rw-r--r-- | include/android_ab.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/android_ab.h b/include/android_ab.h index dbf20343da6..838230e06f8 100644 --- a/include/android_ab.h +++ b/include/android_ab.h @@ -18,7 +18,10 @@ struct disk_partition; #define NUM_SLOTS 2 /** - * Select the slot where to boot from. + * ab_select_slot() - Select the slot where to boot from. + * + * @dev_desc: Place to store the device description pointer + * @part_info: Place to store the partition information * * On Android devices with more than one boot slot (multiple copies of the * kernel and system images) selects which slot should be used to boot from and @@ -28,11 +31,19 @@ struct disk_partition; * registered before returning from this function so it isn't selected * indefinitely. * - * @param[in] dev_desc Place to store the device description pointer - * @param[in] part_info Place to store the partition information * Return: The slot number (>= 0) on success, or a negative on error */ int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info, bool dec_tries); +/** + * ab_dump_abc() - Dump ABC information for specific partition. + * + * @dev_desc: Device description pointer + * @part_info: Partition information + * + * Return: 0 on success, or a negative on error + */ +int ab_dump_abc(struct blk_desc *dev_desc, struct disk_partition *part_info); + #endif /* __ANDROID_AB_H */ |
