diff options
author | Paul Beesley <paul.beesley@arm.com> | 2019-09-26 13:40:38 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2019-09-26 13:40:38 +0000 |
commit | 69ef7b7ffe66b64bdffee0a387774e7088022503 (patch) | |
tree | 976b35b009ee6f13cfcc0a00267b47de7f4b348e /drivers/partition/gpt.c | |
parent | 80a624d1a3d7e052df1c7848aa275f1ac09a743b (diff) | |
parent | deb330cb3837cddf251cea5d804634ad75d48c19 (diff) |
Merge changes I0283fc2e,Ib476d024,Iada05f7c into integration
* changes:
hikey: fix to load FIP by partition table.
hikey960: fix to load FIP by partition table
drivers: partition: support different block size
Diffstat (limited to 'drivers/partition/gpt.c')
-rw-r--r-- | drivers/partition/gpt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/partition/gpt.c b/drivers/partition/gpt.c index 4577f06a..1b804dee 100644 --- a/drivers/partition/gpt.c +++ b/drivers/partition/gpt.c @@ -52,9 +52,10 @@ int parse_gpt_entry(gpt_entry_t *gpt_entry, partition_entry_t *entry) if (result != 0) { return result; } - entry->start = (uint64_t)gpt_entry->first_lba * PARTITION_BLOCK_SIZE; + entry->start = (uint64_t)gpt_entry->first_lba * + PLAT_PARTITION_BLOCK_SIZE; entry->length = (uint64_t)(gpt_entry->last_lba - gpt_entry->first_lba + 1) * - PARTITION_BLOCK_SIZE; + PLAT_PARTITION_BLOCK_SIZE; return 0; } |