Skip to content
Snippets Groups Projects
Commit 03ed1078 authored by Jason Jin's avatar Jason Jin Committed by David Woodhouse
Browse files

[MTD] [NAND] Set the fsl elbc ECCM according the settings in bootloader.


The ECCM maybe set in bootloader, Get ECCM settings from the bootloader,
can avoid the image written by bootloader cannot read out by kernel.

But the limitation of doing it this way is that, it could break large page
NAND if it is written with NAND disabled in u-boot and read with NAND
enabled, or vice versa.

Signed-off-by: default avatarJason Jin <Jason.jin@freescale.com>
Acked-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d3af0f04
No related branches found
No related tags found
No related merge requests found
...@@ -777,7 +777,9 @@ static int fsl_elbc_chip_init(struct fsl_elbc_mtd *priv) ...@@ -777,7 +777,9 @@ static int fsl_elbc_chip_init(struct fsl_elbc_mtd *priv)
/* Fill in fsl_elbc_mtd structure */ /* Fill in fsl_elbc_mtd structure */
priv->mtd.priv = chip; priv->mtd.priv = chip;
priv->mtd.owner = THIS_MODULE; priv->mtd.owner = THIS_MODULE;
priv->fmr = 0; /* rest filled in later */
/* Set the ECCM according to the settings in bootloader.*/
priv->fmr = in_be32(&lbc->fmr) & FMR_ECCM;
/* fill in nand_chip structure */ /* fill in nand_chip structure */
/* set up function call table */ /* set up function call table */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment