提交 dcc41bc8 编写于 作者: D David Woodhouse

[MTD] NAND: Reset Café controller before initialising.

Fixes http://dev.laptop.org/ticket/237Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 2c8cfdcb
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册