summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSandeep Paulraj <s-paulraj@ti.com>2009-10-30 13:51:23 -0400
committerJason Liu <r64343@freescale.com>2010-12-03 11:01:15 +0800
commit298e4cf6838aca016388f6fdfc7ce80cb7902228 (patch)
treed12df0f2ab48de51e4341119e0a27912da6da9bd /include
parentd47b8248f35f034ce2491ccc9c96ffd7e45460c9 (diff)
downloadu-boot-imx-298e4cf6838aca016388f6fdfc7ce80cb7902228.zip
u-boot-imx-298e4cf6838aca016388f6fdfc7ce80cb7902228.tar.gz
u-boot-imx-298e4cf6838aca016388f6fdfc7ce80cb7902228.tar.bz2
NAND: Update to support 64 bit device size
This patch adds support for NANDs greater than 2 GB. Patch is based on the MTD NAND driver in the kernel. Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/nand.h2
-rw-r--r--include/linux/mtd/partitions.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index ea90961..37e08cc 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -396,7 +396,7 @@ struct nand_chip {
int bbt_erase_shift;
int chip_shift;
int numchips;
- unsigned long chipsize;
+ uint64_t chipsize;
int pagemask;
int pagebuf;
int subpagesize;
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h
index 1016675..d1d9a96 100644
--- a/include/linux/mtd/partitions.h
+++ b/include/linux/mtd/partitions.h
@@ -38,8 +38,8 @@
struct mtd_partition {
char *name; /* identifier string */
- u_int32_t size; /* partition size */
- u_int32_t offset; /* offset within the master MTD space */
+ uint64_t size; /* partition size */
+ uint64_t offset; /* offset within the master MTD space */
u_int32_t mask_flags; /* master MTD flags to mask out for this partition */
struct nand_ecclayout *ecclayout; /* out of band layout for this partition (NAND only)*/
struct mtd_info **mtdp; /* pointer to store the MTD object */