Fix rb523 nand detection (#1723)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 29 Jun 2007 11:10:24 +0000 (11:10 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 29 Jun 2007 11:10:24 +0000 (11:10 +0000)
SVN-Revision: 7777

target/linux/rb532-2.6/files/drivers/mtd/nand/rbmipsnand.c

index 1ab37b820806cf2a50e155da2fda2ae490809899..027241b206906a64cd237fcddecabaac65272651 100644 (file)
@@ -99,8 +99,8 @@ int __init rbmips_init(void)
        memset(&rnand, 0, sizeof(rnand));
 
        printk("RB500 nand\n");
-       changeLatchU5(LO_WPX | LO_FOFF | LO_CEX,
-                     LO_ULED | LO_ALE | LO_CLE);
+       changeLatchU5(LO_FOFF | LO_CEX,
+                     LO_ULED | LO_ALE | LO_CLE | LO_WPX);
        rnand.cmd_ctrl = rbmips_hwcontrol500;
 
        rnand.dev_ready = rb500_dev_ready;