Re: [PATCH] driver/mtd:IFC NAND:Initialise internal SRAM before any write
From: Kumar Gala <hidden>
Date: 2012-09-13 12:54:26
On Sep 13, 2012, at 3:54 AM, Prabhakar Kushwaha wrote:
IFC-1.1.0 uses 28nm techenology for SRAM. This tech has known =
limitaion for
SRAM i.e. "byte select" is not supported. Hence Read Modify Write is implemented in IFC for any "system side write" into sram buffer. =
Reading an
uninitialized memory results in ECC Error from sram wrapper. =20 Hence we must initialize/prefill SRAM buffer by any data before =
writing
anything in SRAM from system side. To initialize SRAM user can use =
"READID"
NAND command with read bytes equal to SRAM size. It will be a one time activity post boot. =20 Signed-off-by: Prabhakar Kushwaha <redacted> --- Based upon git://git.infradead.org/linux-mtd.git branch master The compilation of this patch depends upon following patch. http://patchwork.ozlabs.org/patch/177893/ This patch is currently applied on =
git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git=20
branch next and status is "Awaiting Upstream" =20 =20 drivers/mtd/nand/fsl_ifc_nand.c | 56 =
++++++++++++++++++++++++++++++++++++++-
1 file changed, 55 insertions(+), 1 deletion(-)
If MTD maintainers ack, I'm happy to pull this in via PPC tree. - k=