summaryrefslogtreecommitdiff
path: root/include/avb_verify.h
diff options
context:
space:
mode:
authorUsama Arif <usama.arif@arm.com>2020-08-11 17:46:03 +0300
committerTom Rini <trini@konsulko.com>2020-08-24 21:11:13 +0300
commite61b41517d2a91080f6416fdfb46efab9e5a55b4 (patch)
tree65fa59b6f41798a07cefebcf11c6b0e3e8265510 /include/avb_verify.h
parent1aa3966173fe92fa3c46638ee8eb8b8491f521d6 (diff)
downloadu-boot-e61b41517d2a91080f6416fdfb46efab9e5a55b4.tar.xz
avb: Make AVB independent of fastboot
AVB only uses CONFIG_FASTBOOT_BUF_ADDR from fastboot for memory. This memory is used for assigning temporary buffers. This can be assigned a new variable and used as CONFIG_AVB_BUF_ADDR. This is to support future boards that support AVB but dont support USB and therefore dont support FASTBOOT. Signed-off-by: Usama Arif <usama.arif@arm.com> Cc: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Igor Opaniuk <igor.opaniuk@gmail.com> [trini: Change defaults] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/avb_verify.h')
-rw-r--r--include/avb_verify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/avb_verify.h b/include/avb_verify.h
index a8d7090f79..1e787ba666 100644
--- a/include/avb_verify.h
+++ b/include/avb_verify.h
@@ -72,12 +72,12 @@ static inline uint64_t calc_offset(struct mmc_part *part, int64_t offset)
static inline size_t get_sector_buf_size(void)
{
- return (size_t)CONFIG_FASTBOOT_BUF_SIZE;
+ return (size_t)CONFIG_AVB_BUF_SIZE;
}
static inline void *get_sector_buf(void)
{
- return map_sysmem(CONFIG_FASTBOOT_BUF_ADDR, CONFIG_FASTBOOT_BUF_SIZE);
+ return map_sysmem(CONFIG_AVB_BUF_ADDR, CONFIG_AVB_BUF_SIZE);
}
static inline bool is_buf_unaligned(void *buffer)