summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@amarulasolutions.com>2022-08-30 17:48:47 +0300
committerDario Binacchi <dario.binacchi@amarulasolutions.com>2022-10-09 11:42:26 +0300
commit90cce0582df43762e3db4176ab392e229a3194dc (patch)
tree1d1d9cc551edc1e2d028af002098d60d1b1ff1f0 /include
parent6b7149a04613b4468b071294ee97a415e7882ba4 (diff)
downloadu-boot-90cce0582df43762e3db4176ab392e229a3194dc.tar.xz
mtd: mxs_nand: Support EDO mode for imx8mn architecture
Add support for imx8mn architecture in order to run the NAND in fast edo mode. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'include')
-rw-r--r--include/mxs_nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mxs_nand.h b/include/mxs_nand.h
index 741dc8734e..bb5b84b8c2 100644
--- a/include/mxs_nand.h
+++ b/include/mxs_nand.h
@@ -12,6 +12,7 @@
#include <asm/cache.h>
#include <nand.h>
#include <asm/mach-imx/dma.h>
+#include <clk.h>
/**
* @gf_len: The length of Galois Field. (e.g., 13 or 14)
@@ -43,6 +44,7 @@ struct mxs_nand_info {
struct nand_chip chip;
struct udevice *dev;
unsigned int max_ecc_strength_supported;
+ int max_chain_delay;
bool use_minimum_ecc;
int cur_chip;
@@ -59,6 +61,7 @@ struct mxs_nand_info {
struct mxs_gpmi_regs *gpmi_regs;
struct mxs_bch_regs *bch_regs;
+ struct clk *gpmi_clk;
/* Functions with altered behaviour */
int (*hooked_read_oob)(struct mtd_info *mtd,