]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: nand: tango: Reset pbus to raw mode in probe
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Tue, 3 Jan 2017 10:01:14 +0000 (11:01 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 3 Jan 2017 10:58:35 +0000 (11:58 +0100)
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: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/tango_nand.c

index 78a65f672c87b69af0e3b2663f800fe398d98579..4a5e948c62df1b7d29ff9fe78b50e7d0858b01d5 100644 (file)
@@ -632,6 +632,8 @@ static int tango_nand_probe(struct platform_device *pdev)
        if (IS_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);
        if (IS_ERR(clk))
                return PTR_ERR(clk);