diff options
author | Han Xu <han.xu@nxp.com> | 2017-08-22 09:45:50 -0500 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 2c234290ee9d07ea4fceb95d8168169c1ca1162e (patch) | |
tree | 273c9c75ec48838d6f37f83d5e5f367e12761b14 /drivers/mtd | |
parent | 0ff6de35b8c3985e164cd966b72b65c968440654 (diff) |
MLK-16243: mtd: gpmi: enable the EDO mode for i.MX8
Enable the EDO mode on i.MX8 platforms for better performance.
Signed-off-by: Han Xu <han.xu@nxp.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c index 56793865b468..b9843a6b6127 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-lib.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-lib.c @@ -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); |