Skip to content

Commit

Permalink
[MTD] NAND: Reset Café controller before initialising.
Browse files Browse the repository at this point in the history
Fixes http://dev.laptop.org/ticket/237

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Oct 27, 2006
1 parent 2c8cfdc commit dcc41bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mtd/nand/cafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
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
Expand Down

0 comments on commit dcc41bc

Please sign in to comment.