aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2014-02-21 00:39:38 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 01:42:26 -0400
commitd94abba7605d3c15123eb3b331a1872ef17d29e0 (patch)
tree174cfa9a86d91b5fcd0240c441fa14f287f09640 /include/linux/mtd
parentafbfff03d611de22b1ec7127ad56920e02936d5e (diff)
mtd: nand: add fields for JEDEC in nand_chip
Add the jedec_version field, and add an anonymous union which contains the nand_onfi_params and nand_jedec_params. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 588f8a4a27af..f9af7564118a 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -590,8 +590,12 @@ struct nand_buffers {
590 * @subpagesize: [INTERN] holds the subpagesize 590 * @subpagesize: [INTERN] holds the subpagesize
591 * @onfi_version: [INTERN] holds the chip ONFI version (BCD encoded), 591 * @onfi_version: [INTERN] holds the chip ONFI version (BCD encoded),
592 * non 0 if ONFI supported. 592 * non 0 if ONFI supported.
593 * @jedec_version: [INTERN] holds the chip JEDEC version (BCD encoded),
594 * non 0 if JEDEC supported.
593 * @onfi_params: [INTERN] holds the ONFI page parameter when ONFI is 595 * @onfi_params: [INTERN] holds the ONFI page parameter when ONFI is
594 * supported, 0 otherwise. 596 * supported, 0 otherwise.
597 * @jedec_params: [INTERN] holds the JEDEC parameter page when JEDEC is
598 * supported, 0 otherwise.
595 * @read_retries: [INTERN] the number of read retry modes supported 599 * @read_retries: [INTERN] the number of read retry modes supported
596 * @onfi_set_features: [REPLACEABLE] set the features for ONFI nand 600 * @onfi_set_features: [REPLACEABLE] set the features for ONFI nand
597 * @onfi_get_features: [REPLACEABLE] get the features for ONFI nand 601 * @onfi_get_features: [REPLACEABLE] get the features for ONFI nand
@@ -664,7 +668,11 @@ struct nand_chip {
664 int badblockbits; 668 int badblockbits;
665 669
666 int onfi_version; 670 int onfi_version;
667 struct nand_onfi_params onfi_params; 671 int jedec_version;
672 union {
673 struct nand_onfi_params onfi_params;
674 struct nand_jedec_params jedec_params;
675 };
668 676
669 int read_retries; 677 int read_retries;
670 678