aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-10-27 02:55:34 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-27 02:55:34 -0400
commitdcc41bc81c872862652d68af8993b9fa32ce56a4 (patch)
tree6d01b2f4606b4d532d863312e82006924d0876f0 /drivers/mtd
parent2c8cfdcbeb1ab0ec7bbd5af1be311b55281154c4 (diff)
[MTD] NAND: Reset Café controller before initialising.
Fixes http://dev.laptop.org/ticket/237 Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/cafe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/cafe.c b/drivers/mtd/nand/cafe.c
index 6bcb430b951c..dd274c877b5e 100644
--- a/drivers/mtd/nand/cafe.c
+++ b/drivers/mtd/nand/cafe.c
@@ -598,6 +598,10 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
598 cafe->nand.block_bad = cafe_nand_block_bad; 598 cafe->nand.block_bad = cafe_nand_block_bad;
599 } 599 }
600 600
601 /* Start off by resetting the NAND controller completely */
602 writel(1, cafe->mmio + 0x3034);
603 writel(0, cafe->mmio + 0x3034);
604
601 /* Timings from Marvell's test code (not verified or calculated by us) */ 605 /* Timings from Marvell's test code (not verified or calculated by us) */
602 writel(0xffffffff, cafe->mmio + CAFE_NAND_IRQ_MASK); 606 writel(0xffffffff, cafe->mmio + CAFE_NAND_IRQ_MASK);
603#if 1 607#if 1