[U-Boot-Users] Patch to boot systemace read performance

20 Mar
2004
20 Mar
'04
3:48 a.m.
This small patch increases file read performance from CompactFLASH via SystemACE. It makes a significant difference.
CHANGELOG ENTRY * Patch by Stephen Williams, 19 March 2004 Increase speed of sector reads from SystemACE, shorten poll timeout and remove a useless reset.
--
Steve Williams "The woods are lovely, dark and deep.
steve at XXXXXXXXXX But I have promises to keep,
http://www.XXXXXXXXXX and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
Index: common/cmd_ace.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/cmd_ace.c,v
retrieving revision 1.3
diff -u -r1.3 cmd_ace.c
--- common/cmd_ace.c 27 Feb 2004 08:21:54 -0000 1.3
+++ common/cmd_ace.c 20 Mar 2004 02:36:20 -0000
@@ -190,16 +190,13 @@
/* Write sector count | ReadMemCardData. */
ace_writew((trans&0xff) | 0x0300, 0x14);
- /* CONTROLREG = CFGRESET|LOCKREQ */
- ace_writew(0x0082, 0x18);
-
retry = trans * 16;
while (retry > 0) {
int idx;
/* Wait for buffer to become ready. */
while (! (ace_readw(0x04) & 0x0020)) {
- udelay(1000);
+ udelay(100);
}
/* Read 16 words of 2bytes from the sector buffer. */
7717
Age (days ago)
7717
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stephen Williams