diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-05-31 00:32:09 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-07 16:29:22 +0300 |
commit | ad972ac3d948ae1e8b9e75ef96e9dbe8392a4678 (patch) | |
tree | 2cfe0fba450efa032e029d1f521115517f704e29 /tools/rkcommon.h | |
parent | 2fb371ff6483227f9be74cbce17c088bec96b411 (diff) | |
download | u-boot-ad972ac3d948ae1e8b9e75ef96e9dbe8392a4678.tar.xz |
rockchip: mkimage: force 2KB alignment for init_size
The Rockchip BootROM relies on init_size being aligned to 2KB
(see https://lists.denx.de/pipermail/u-boot/2017-May/293268.html).
This pads the image to 2KB both for SD card images and SPI images
and uses a common symbolic constant for the alignment.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/rkcommon.h')
-rw-r--r-- | tools/rkcommon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/rkcommon.h b/tools/rkcommon.h index 75a4ed653f..8790f1ceab 100644 --- a/tools/rkcommon.h +++ b/tools/rkcommon.h @@ -10,6 +10,7 @@ enum { RK_BLK_SIZE = 512, + RK_INIT_SIZE_ALIGN = 2048, RK_INIT_OFFSET = 4, RK_MAX_BOOT_SIZE = 512 << 10, RK_SPL_HDR_START = RK_INIT_OFFSET * RK_BLK_SIZE, |