aboutsummaryrefslogtreecommitdiff
path: root/tools/mtk_image.h
diff options
context:
space:
mode:
authorFabien Parent <fparent@baylibre.com>2020-10-16 19:52:37 +0200
committerTom Rini <trini@konsulko.com>2021-01-18 14:59:29 -0500
commit44165e4c676d266f73fda2e6ba82b4bf3262daf2 (patch)
tree7d4d4d50ca69b9d564750dfe121bc3c0d1ecd089 /tools/mtk_image.h
parent9f6322bd6bb349e3f7a57035c389f345a507afce (diff)
downloadu-boot-44165e4c676d266f73fda2e6ba82b4bf3262daf2.zip
u-boot-44165e4c676d266f73fda2e6ba82b4bf3262daf2.tar.gz
u-boot-44165e4c676d266f73fda2e6ba82b4bf3262daf2.tar.bz2
tools: mtk_image: add support for booting ARM64 images
mkimage is only able to package aarch32 binaries. Add support for AArch64 images. One can create a ARM64 image using the following command line: mkimage -T mtk_image -a 0x201000 -e 0x201000 -n "media=emmc;arm64=1" -d bl2.bin bl2.img Signed-off-by: Fabien Parent <fparent@baylibre.com>
Diffstat (limited to 'tools/mtk_image.h')
-rw-r--r--tools/mtk_image.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mtk_image.h b/tools/mtk_image.h
index 4e78b3d..7dda71c 100644
--- a/tools/mtk_image.h
+++ b/tools/mtk_image.h
@@ -136,7 +136,9 @@ struct gfh_brom_cfg {
struct gfh_common_header gfh;
uint32_t cfg_bits;
uint32_t usbdl_by_auto_detect_timeout_ms;
- uint8_t unused[0x48];
+ uint8_t unused[0x45];
+ uint8_t jump_bl_arm64;
+ uint8_t unused2[2];
uint32_t usbdl_by_kcol0_timeout_ms;
uint32_t usbdl_by_flag_timeout_ms;
uint32_t pad;
@@ -146,6 +148,8 @@ struct gfh_brom_cfg {
#define GFH_BROM_CFG_USBDL_AUTO_DETECT_DIS 0x10
#define GFH_BROM_CFG_USBDL_BY_KCOL0_TIMEOUT_EN 0x80
#define GFH_BROM_CFG_USBDL_BY_FLAG_TIMEOUT_EN 0x100
+#define GFH_BROM_CFG_JUMP_BL_ARM64_EN 0x1000
+#define GFH_BROM_CFG_JUMP_BL_ARM64 0x64
struct gfh_bl_sec_key {
struct gfh_common_header gfh;