summaryrefslogtreecommitdiff
path: root/tools/kwbimage.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-10-22 13:37:46 +0300
committerStefan Roese <sr@denx.de>2021-10-28 11:33:32 +0300
commit2fdba4f6585c31da748eee69a8dea1cf0a11d311 (patch)
tree595b9a3e2a8cc2e158fcff0026b439ba02c5fda5 /tools/kwbimage.h
parent59102987be25920b2180ebe2a18fbaf56c5a8278 (diff)
downloadu-boot-2fdba4f6585c31da748eee69a8dea1cf0a11d311.tar.xz
tools: kwbimage: Add support for NAND_PAGE_SIZE command also for v1 images
The NAND_PAGE_SIZE command is already supported by mkimage for v0 images, but not for v1 images. A38x and A39x BootROM supports reading NAND flash page size from v1 image in the same way as Kirkwood BootROM from v0 image. It it documented in A38x and A39x Functional Specification. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools/kwbimage.h')
-rw-r--r--tools/kwbimage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.h b/tools/kwbimage.h
index 126d482fe7..f1ba95c2fa 100644
--- a/tools/kwbimage.h
+++ b/tools/kwbimage.h
@@ -73,7 +73,7 @@ struct ext_hdr_v0 {
struct main_hdr_v1 {
uint8_t blockid; /* 0x0 */
uint8_t flags; /* 0x1 */
- uint16_t reserved2; /* 0x2-0x3 */
+ uint16_t nandpagesize; /* 0x2-0x3 */
uint32_t blocksize; /* 0x4-0x7 */
uint8_t version; /* 0x8 */
uint8_t headersz_msb; /* 0x9 */