lantiq: add missing NAND_WRITE_DATA in NAND driver.
Signed-off-by: Sylwester Petela <sscapi@gmail.com> SVN-Revision: 43856
This commit is contained in:
parent
26b57a6dc2
commit
5bbe758e4e
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
+
|
+
|
||||||
+ spin_lock_irqsave(&ebu_lock, flags);
|
+ spin_lock_irqsave(&ebu_lock, flags);
|
||||||
+ for (i = 0; i < len; i++)
|
+ for (i = 0; i < len; i++)
|
||||||
+ ltq_w8(buf[i], (void __iomem *)nandaddr);
|
+ ltq_w8(buf[i], (void __iomem *)(nandaddr | NAND_WRITE_DATA));
|
||||||
+ spin_unlock_irqrestore(&ebu_lock, flags);
|
+ spin_unlock_irqrestore(&ebu_lock, flags);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
|
|
@ -82,7 +82,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
|
|
||||||
- spin_lock_irqsave(&ebu_lock, flags);
|
- spin_lock_irqsave(&ebu_lock, flags);
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
ltq_w8(buf[i], (void __iomem *)nandaddr);
|
ltq_w8(buf[i], (void __iomem *)(nandaddr | NAND_WRITE_DATA));
|
||||||
- spin_unlock_irqrestore(&ebu_lock, flags);
|
- spin_unlock_irqrestore(&ebu_lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue