summaryrefslogtreecommitdiff
path: root/include/fsl_ifc.h
diff options
context:
space:
mode:
authorJagdish Gediya <jagdish.gediya@nxp.com>2018-03-24 02:55:51 +0530
committerYork Sun <york.sun@nxp.com>2018-05-09 09:17:51 -0500
commitf195fad178979020b226671cafec9f9592860174 (patch)
tree8868aaa5652d128ebd5b45347a8103573d5fae60 /include/fsl_ifc.h
parent1f553564116f47e4730e1cadbcf9bc24e550cfa6 (diff)
mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0
Number of ECC status registers i.e. (ECCSTATx) has been increased in IFC version 2.0.0 due to increase in SRAM size. This is causing eccstat array to over flow. So, replace eccstat array with u32 variable to make it fail-safe and independent of number of ECC status registers or SRAM size. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/fsl_ifc.h')
-rw-r--r--include/fsl_ifc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fsl_ifc.h b/include/fsl_ifc.h
index d051e92ce4..8120ca0de8 100644
--- a/include/fsl_ifc.h
+++ b/include/fsl_ifc.h
@@ -891,8 +891,8 @@ struct fsl_ifc_nand {
u32 nand_erattr1;
u32 res19[0x10];
u32 nand_fsr;
- u32 res20[0x3];
- u32 nand_eccstat[6];
+ u32 res20[0x1];
+ u32 nand_eccstat[8];
u32 res21[0x1c];
u32 nanndcr;
u32 res22[0x2];