diff options
author | Paul Burton <paul.burton@imgtec.com> | 2013-09-04 15:16:57 +0100 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-10-09 12:52:16 -0500 |
commit | 39ac34473f3c96e77cbe03a49141771ed1639486 (patch) | |
tree | 9dc16508b3706908ab5da5dc71087b444301f97a /include/jffs2 | |
parent | 40462e541d740e6af634fc793164e49317b38a11 (diff) | |
download | u-boot-imx-39ac34473f3c96e77cbe03a49141771ed1639486.zip u-boot-imx-39ac34473f3c96e77cbe03a49141771ed1639486.tar.gz u-boot-imx-39ac34473f3c96e77cbe03a49141771ed1639486.tar.bz2 |
cmd_mtdparts: use 64 bits for flash size, partition size & offset
This matches the 64 bit size in struct mtd_info and allows the mtdparts
command to function correctly with a flash >= 4GiB. Format specifiers
for size & offset are given the ll length, matching its use in
drivers/mtd in absence of something like inttypes.h/PRIx64.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/jffs2')
-rw-r--r-- | include/jffs2/load_kernel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/jffs2/load_kernel.h b/include/jffs2/load_kernel.h index e1943e5..dd0d23f 100644 --- a/include/jffs2/load_kernel.h +++ b/include/jffs2/load_kernel.h @@ -32,8 +32,8 @@ struct part_info { struct list_head link; char *name; /* partition name */ u8 auto_name; /* set to 1 for generated name */ - u32 size; /* total size of the partition */ - u32 offset; /* offset within device */ + u64 size; /* total size of the partition */ + u64 offset; /* offset within device */ void *jffs2_priv; /* used internaly by jffs2 */ u32 mask_flags; /* kernel MTD mask flags */ u32 sector_size; /* size of sector */ @@ -44,7 +44,7 @@ struct mtdids { struct list_head link; u8 type; /* device type */ u8 num; /* device number */ - u32 size; /* device size */ + u64 size; /* device size */ char *mtd_id; /* linux kernel device id */ }; |