[MTD] NAND: Reset Café controller before initialising.
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Nov 28 18:59:04 EST 2006
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=dcc41bc81c872862652d68af8993b9fa32ce56a4
Commit: dcc41bc81c872862652d68af8993b9fa32ce56a4
Parent: 2c8cfdcbeb1ab0ec7bbd5af1be311b55281154c4
commit dcc41bc81c872862652d68af8993b9fa32ce56a4
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Fri Oct 27 09:55:34 2006 +0300
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Oct 27 09:55:34 2006 +0300
[MTD] NAND: Reset Café controller before initialising.
Fixes http://dev.laptop.org/ticket/237
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/nand/cafe.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/cafe.c b/drivers/mtd/nand/cafe.c
index 6bcb430..dd274c8 100644
--- a/drivers/mtd/nand/cafe.c
+++ b/drivers/mtd/nand/cafe.c
@@ -598,6 +598,10 @@ static int __devinit cafe_nand_probe(str
cafe->nand.block_bad = cafe_nand_block_bad;
}
+ /* Start off by resetting the NAND controller completely */
+ writel(1, cafe->mmio + 0x3034);
+ writel(0, cafe->mmio + 0x3034);
+
/* Timings from Marvell's test code (not verified or calculated by us) */
writel(0xffffffff, cafe->mmio + CAFE_NAND_IRQ_MASK);
#if 1
More information about the linux-mtd-cvs
mailing list