aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2013-12-03 15:02:20 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-14 02:12:53 -0500
commit6f0065b0124bef5e66869ec0b813d251797be439 (patch)
treeef982ac50c08b9950396f106baf5abe968d33f74
parentb72f3dfb8ccf7e39b9434f548c1c98aa45c11426 (diff)
mtd: nand: add ONFI vendor block for Micron
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Huang Shijie <b32955@freescale.com>
-rw-r--r--include/linux/mtd/nand.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index f3ea8daf08ee..029fe5948dc4 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -285,7 +285,8 @@ struct nand_onfi_params {
285 u8 reserved4[7]; 285 u8 reserved4[7];
286 286
287 /* vendor */ 287 /* vendor */
288 u8 reserved5[90]; 288 __le16 vendor_revision;
289 u8 vendor[88];
289 290
290 __le16 crc; 291 __le16 crc;
291} __attribute__((packed)); 292} __attribute__((packed));
@@ -326,6 +327,26 @@ struct onfi_ext_param_page {
326 */ 327 */
327} __packed; 328} __packed;
328 329
330struct nand_onfi_vendor_micron {
331 u8 two_plane_read;
332 u8 read_cache;
333 u8 read_unique_id;
334 u8 dq_imped;
335 u8 dq_imped_num_settings;
336 u8 dq_imped_feat_addr;
337 u8 rb_pulldown_strength;
338 u8 rb_pulldown_strength_feat_addr;
339 u8 rb_pulldown_strength_num_settings;
340 u8 otp_mode;
341 u8 otp_page_start;
342 u8 otp_data_prot_addr;
343 u8 otp_num_pages;
344 u8 otp_feat_addr;
345 u8 read_retry_options;
346 u8 reserved[72];
347 u8 param_revision;
348} __packed;
349
329/** 350/**
330 * struct nand_hw_control - Control structure for hardware controller (e.g ECC generator) shared among independent devices 351 * struct nand_hw_control - Control structure for hardware controller (e.g ECC generator) shared among independent devices
331 * @lock: protection lock 352 * @lock: protection lock