MLK-16243: mtd: gpmi: enable the EDO mode for i.MX8
authorHan Xu <han.xu@nxp.com>
Tue, 22 Aug 2017 14:45:50 +0000 (09:45 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:44 +0000 (15:36 -0500)
Enable the EDO mode on i.MX8 platforms for better performance.

Signed-off-by: Han Xu <han.xu@nxp.com>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c

index 5679386..b9843a6 100644 (file)
@@ -1,8 +1,9 @@
 /*
  * Freescale GPMI NAND Flash Driver
  *
- * Copyright (C) 2008-2016 Freescale Semiconductor, Inc.
  * Copyright (C) 2008 Embedded Alley Solutions, Inc.
+ * Copyright (C) 2008-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -1024,8 +1025,7 @@ int gpmi_extra_init(struct gpmi_nand_data *this)
        struct nand_chip *chip = &this->nand;
 
        /* Enable the asynchronous EDO feature. */
-       /* if ((GPMI_IS_MX6(this) || GPMI_IS_MX7(this) || GPMI_IS_MX8(this)) */
-       if ((GPMI_IS_MX6(this) || GPMI_IS_MX7(this))
+       if ((GPMI_IS_MX6(this) || GPMI_IS_MX7(this) || GPMI_IS_MX8(this))
                        && chip->onfi_version) {
                int mode = onfi_get_async_timing_mode(chip);