mtd: nand: add ONFI vendor block for Micron
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:07 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6f0065b0124bef5e66869ec0b813d251797be439
Commit: 6f0065b0124bef5e66869ec0b813d251797be439
Parent: b72f3dfb8ccf7e39b9434f548c1c98aa45c11426
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Dec 3 12:02:20 2013 -0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Jan 13 23:12:53 2014 -0800
mtd: nand: add ONFI vendor block for Micron
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Acked-by: Huang Shijie <b32955 at freescale.com>
---
include/linux/mtd/nand.h | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index f3ea8da..029fe59 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -285,7 +285,8 @@ struct nand_onfi_params {
u8 reserved4[7];
/* vendor */
- u8 reserved5[90];
+ __le16 vendor_revision;
+ u8 vendor[88];
__le16 crc;
} __attribute__((packed));
@@ -326,6 +327,26 @@ struct onfi_ext_param_page {
*/
} __packed;
+struct nand_onfi_vendor_micron {
+ u8 two_plane_read;
+ u8 read_cache;
+ u8 read_unique_id;
+ u8 dq_imped;
+ u8 dq_imped_num_settings;
+ u8 dq_imped_feat_addr;
+ u8 rb_pulldown_strength;
+ u8 rb_pulldown_strength_feat_addr;
+ u8 rb_pulldown_strength_num_settings;
+ u8 otp_mode;
+ u8 otp_page_start;
+ u8 otp_data_prot_addr;
+ u8 otp_num_pages;
+ u8 otp_feat_addr;
+ u8 read_retry_options;
+ u8 reserved[72];
+ u8 param_revision;
+} __packed;
+
/**
* struct nand_hw_control - Control structure for hardware controller (e.g ECC generator) shared among independent devices
* @lock: protection lock
More information about the linux-mtd-cvs
mailing list