]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: expose partition type flags
authorCaleb Connolly <caleb.connolly@linaro.org>
Sat, 12 Oct 2024 13:57:18 +0000 (15:57 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 20 Nov 2024 16:57:58 +0000 (17:57 +0100)
commiteab4675f93dfedd29a37ffe3b1fa3fbeae831839
tree42b05bed0fe7fc77a50e5d8401f9d86de552d346
parentef14c347db4ae62f964bcf36805563efe1104754
disk: expose partition type flags

GPT partition tables include two bytes worth of vendor defined
attributes, per partition. ChromeOS and Qualcomm both use these (with
different encoding!) to handle A/B slot switching with a retry counter.

Expose these via the disk_partition struct so that they can be parsed by
the relevant board code.

This will be used on Qualcomm boards to determine which slot we're
booting on so that we can flash capsule updates to the correct one.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
disk/part_efi.c
include/part.h