9
0
Fork 0

Fix imx_nand_set_layout for i.MX27

FMCR is (*((volatile u32 *)(x))) (0x10027814) and thus this leads
to a data abort.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Benard 2009-12-09 14:55:14 +01:00 committed by Sascha Hauer
parent 4701717357
commit cf6399b2aa
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ void imx_nand_set_layout(int writesize, int datawidth)
{
unsigned int fmcr;
fmcr = readl(FMCR);
fmcr = FMCR;
switch (writesize) {
case 512:
@ -92,7 +92,7 @@ void imx_nand_set_layout(int writesize, int datawidth)
break;
}
writel(fmcr, FMCR);
FMCR = fmcr;
}
#else