aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2010-04-28 11:46:45 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-13 20:49:21 -0400
commit6a88c47bd528cb0f82692986a3ca57b3695d9c60 (patch)
treea5962128ef4e85228af0cb1fffd603a0761acccd /include/linux/mtd
parent7d84b6273c2a7805c042b398dcc01c98ad2ecf20 (diff)
mtd: onenand: add support for chips with 4KiB page size
This patch adds support for OneNAND chips that have 4KiB page size. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/onenand.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h
index 5509eb06b326..c9a3c3596b68 100644
--- a/include/linux/mtd/onenand.h
+++ b/include/linux/mtd/onenand.h
@@ -175,10 +175,14 @@ struct onenand_chip {
175#define ONENAND_HAS_CONT_LOCK (0x0001) 175#define ONENAND_HAS_CONT_LOCK (0x0001)
176#define ONENAND_HAS_UNLOCK_ALL (0x0002) 176#define ONENAND_HAS_UNLOCK_ALL (0x0002)
177#define ONENAND_HAS_2PLANE (0x0004) 177#define ONENAND_HAS_2PLANE (0x0004)
178#define ONENAND_HAS_4KB_PAGE (0x0008)
178#define ONENAND_SKIP_UNLOCK_CHECK (0x0100) 179#define ONENAND_SKIP_UNLOCK_CHECK (0x0100)
179#define ONENAND_PAGEBUF_ALLOC (0x1000) 180#define ONENAND_PAGEBUF_ALLOC (0x1000)
180#define ONENAND_OOBBUF_ALLOC (0x2000) 181#define ONENAND_OOBBUF_ALLOC (0x2000)
181 182
183#define ONENAND_IS_4KB_PAGE(this) \
184 (this->options & ONENAND_HAS_4KB_PAGE)
185
182/* 186/*
183 * OneNAND Flash Manufacturer ID Codes 187 * OneNAND Flash Manufacturer ID Codes
184 */ 188 */