summaryrefslogtreecommitdiff
path: root/common/env_sata.c
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2016-07-19 14:56:14 +0530
committerTom Rini <trini@konsulko.com>2016-07-22 14:46:25 -0400
commit3cc1f380e518999e68fa64d200d19063f31cb023 (patch)
tree761296aadff9919413ba6cae4dc30b75e48001f5 /common/env_sata.c
parent2b9ec762c4fb5c0f933f5b3380ef9f5c353d0eef (diff)
downloadu-boot-imx-3cc1f380e518999e68fa64d200d19063f31cb023.zip
u-boot-imx-3cc1f380e518999e68fa64d200d19063f31cb023.tar.gz
u-boot-imx-3cc1f380e518999e68fa64d200d19063f31cb023.tar.bz2
spl: fit: Fix the number of bytes read in raw mode
In raw mode a full sector is to be read even if image covers part of a sector. Number of sectors are calculated as ROUND_UP(size)/sec_size by FIT framework. This calculation assumes that image is at the 0th offset of a sector, which is not true always in FIT case. So, include the image offset while calculating number of sectors. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/env_sata.c')
0 files changed, 0 insertions, 0 deletions