aboutsummaryrefslogtreecommitdiff
path: root/tools/mtk_image.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-07-14 07:18:33 -0400
committerTom Rini <trini@konsulko.com>2022-07-14 07:18:33 -0400
commit58f3dc5c4eac9c6050edda6af2e37d20a2f9586d (patch)
tree78f091f787b36104ea2e2e42fee9b335a7915daa /tools/mtk_image.h
parent854d6de6107bca044db362612f39691f4f5395ca (diff)
parentdd6bf539e88aff1b8caeeccbe9af59b2191a178b (diff)
Merge tag 'mips-pull-2022-07-13' of https://source.denx.de/u-boot/custodians/u-boot-mips
- MIPS: add drivers and board support for Mediatek MT7621 SoC
Diffstat (limited to 'tools/mtk_image.h')
-rw-r--r--tools/mtk_image.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/mtk_image.h b/tools/mtk_image.h
index 7dda71ce88..d868545a33 100644
--- a/tools/mtk_image.h
+++ b/tools/mtk_image.h
@@ -200,4 +200,28 @@ union lk_hdr {
#define LK_PART_MAGIC 0x58881688
+/* MT7621 NAND SPL image header */
+
+#define MT7621_IH_NMLEN 12
+#define MT7621_IH_CRC_POLYNOMIAL 0x04c11db7
+
+struct mt7621_nand_header {
+ char ih_name[MT7621_IH_NMLEN];
+ uint32_t nand_ac_timing;
+ uint32_t ih_stage_offset;
+ uint32_t ih_bootloader_offset;
+ uint32_t nand_info_1_data;
+ uint32_t crc;
+};
+
+struct mt7621_stage1_header {
+ uint32_t jump_insn[2];
+ uint32_t ep;
+ uint32_t stage_size;
+ uint32_t has_stage2;
+ uint32_t next_ep;
+ uint32_t next_size;
+ uint32_t next_offset;
+};
+
#endif /* _MTK_IMAGE_H */