diff options
author | Sébastien Szymanski <sebastien.szymanski@armadeus.com> | 2020-05-13 16:02:28 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-06-08 10:42:14 +0200 |
commit | 1f63ee656698724bcdc4e711b4ccd267f6bf64ab (patch) | |
tree | 576af1c3b66ae32e6b02dd3be90f3aa2c993c617 /configs/display5_defconfig | |
parent | 2c72bf21c66692cf0b9c305c27ac4a5218a4dd01 (diff) |
imx: rom api: fix image offset computation
When not booting from FlexSPI, the offset computation is:
offset = image_offset + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8000;
When booting from SD card or eMMC user partition, image_offset is
0x8000. It is useless to add and remove 0x8000.
When booting from other device, image_offset is 0 so this computation is wrong.
Simplfy this computation to work on all booting devices.
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Diffstat (limited to 'configs/display5_defconfig')
0 files changed, 0 insertions, 0 deletions