Commit 8043d25b authored by Marc Gonzalez's avatar Marc Gonzalez Committed by Boris Brezillon

mtd: nand: tango: Reset pbus to raw mode in probe

Linux should not expect the boot loader to properly configure the
peripheral bus "pad mode", so reset PBUS_PAD_MODE to raw.
Signed-off-by: default avatarMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 7165b8ad
...@@ -632,6 +632,8 @@ static int tango_nand_probe(struct platform_device *pdev) ...@@ -632,6 +632,8 @@ static int tango_nand_probe(struct platform_device *pdev)
if (IS_ERR(nfc->pbus_base)) if (IS_ERR(nfc->pbus_base))
return PTR_ERR(nfc->pbus_base); return PTR_ERR(nfc->pbus_base);
writel_relaxed(MODE_RAW, nfc->pbus_base + PBUS_PAD_MODE);
clk = clk_get(&pdev->dev, NULL); clk = clk_get(&pdev->dev, NULL);
if (IS_ERR(clk)) if (IS_ERR(clk))
return PTR_ERR(clk); return PTR_ERR(clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment