aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2010-12-17 11:07:23 +0800
committerRobby Cai <R63905@freescale.com>2010-12-17 13:46:33 +0800
commite83a08a0c2101ab9d90eae2e442a0d637374965e (patch)
treef637cf5a3db04704b288b1ad710745e50460cb54
parent26a8bc1b05801eb101edd375dd8305bc2ef4a2f5 (diff)
ENGR00137101-2 NAND : change the field `is_onfi_nand` to `is_ddr_ok`
The ONFI NAND and TOGGLE NAND both support the DDR. So merge the same attribution to a new field `is_ddr_ok`. Also add a inline function to judge the DDR nand. Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r--drivers/mtd/nand/nand_device_info.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/mtd/nand/nand_device_info.h b/drivers/mtd/nand/nand_device_info.h
index 63011c7e97e4..f74c975b2fb6 100644
--- a/drivers/mtd/nand/nand_device_info.h
+++ b/drivers/mtd/nand/nand_device_info.h
@@ -43,7 +43,7 @@ enum nand_device_cell_technology {
* the device.
* @device_code: The device code (2nd ID byte) reported by the
* device.
- * @is_onfi_nand: Is this nand an ONFI nand ?
+ * @is_ddr_ok: Is this nand an ONFI nand or TOGGLE nand ?
* @cell_technology: The storage cell technology.
* @chip_size_in_bytes: The total size of the storage behind a single
* chip select, in bytes. Notice that this is *not*
@@ -90,8 +90,8 @@ struct nand_device_info {
uint8_t manufacturer_code;
uint8_t device_code;
- /* ONFI nand */
- bool is_onfi_nand;
+ /* Does the nand support DDR? (ONFI or TOGGLE) */
+ bool is_ddr_ok;
/* Technology */
@@ -142,8 +142,11 @@ struct nand_device_info *nand_device_get_info(const uint8_t id_bytes[]);
void nand_device_print_info(struct nand_device_info *info);
/*
- * Check the NAND whether it is an ONFI nand.
+ * Check the NAND whether it supports the DDR mode.
+ * Only the ONFI nand and TOGGLE nand support the DDR now.
*/
-bool is_onfi_nand(struct nand_device_info *info);
-
+static inline bool is_ddr_nand(struct nand_device_info *info)
+{
+ return info->is_ddr_ok;
+}
#endif