projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7165b8a
)
mtd: nand: tango: Reset pbus to raw mode in probe
author
Marc Gonzalez
<
[email protected]
>
Tue, 3 Jan 2017 10:01:14 +0000
(11:01 +0100)
committer
Boris Brezillon
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/tango_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/tango_nand.c
b/drivers/mtd/nand/tango_nand.c
index 78a65f672c87b69af0e3b2663f800fe398d98579..4a5e948c62df1b7d29ff9fe78b50e7d0858b01d5 100644
(file)
--- a/
drivers/mtd/nand/tango_nand.c
+++ b/
drivers/mtd/nand/tango_nand.c
@@
-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);