With the default settings in the current patch in trunk, I am seeing heavy
corruption with the CF cards in both the Avila and Cambria  IXP4xx boards
from Gateworks.  This patch adjusts the timing and has cleared up the
corruption issue.

Signed-off-by: Mark Kelly < mekelly5 at gmail dot com>

Index: target/linux/ixp4xx/patches-2.6.32/312-ixp4xx_pata_optimization.patch
===================================================================
--- target/linux/ixp4xx/patches-2.6.32/312-ixp4xx_pata_optimization.patch
(revision
21394)
+++ target/linux/ixp4xx/patches-2.6.32/312-ixp4xx_pata_optimization.patch
(working
copy)
@@ -104,7 +104,7 @@
 + *data->cs0_cfg = 0x80403c42;
 + break;
 + }
-+ udelay(5);
++ udelay(20);

   /* Transfer multiple of 2 bytes */
   if (rw == READ)
@@ -114,7 +114,7 @@

 - udelay(100);
 - *data->cs0_cfg |= 0x01;
-+ udelay(5);
++ udelay(20);
 + switch (pio_mask){
 + case 0:
 + *data->cs0_cfg = 0x8a473c03;
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to