Added a small delay between the write to the BAP select and offset registers

in copy_to_bap().  An attempt to get rid of the BAP errors we've been getting
from the txframe() routine.
This commit is contained in:
mark 2000-01-28 06:32:58 +00:00
parent 0ac131596d
commit b6561fde70
2 changed files with 7 additions and 45 deletions

View file

@ -1,4 +1,4 @@
/* prism2dl.c: user utility for downloading the prism2 tertiary image
/* prism2dl.c: user utility for downloading prism2 images
* --------------------------------------------------------------------
*
* Linux WLAN
@ -456,9 +456,8 @@ int main ( int argc, char **argv )
/*-----------------------------------------------------*/
/* Read the flash files */
if ( opt_flashloadcnt ) {
#if 0
/* For each file */
for ( i = 0; i < flashloadcnt; i++) {
for ( i = 0; i < opt_flashloadcnt; i++) {
/* Read the S3 file */
result = read_srecfile(ffname[i]);
if ( result ) {
@ -467,15 +466,16 @@ int main ( int argc, char **argv )
ffname[i]);
exit(1);
}
/* Validate the identity and compat ranges */
/* TODO: Validate the identity and compat ranges */
/* Make the image chunks */
/* result = mkchunks(flash_chunks); */
/* Do any plugging */
}
#endif
}
/* Read the ram files */
if ( opt_flashloadcnt ) {
if ( opt_ramloadcnt ) {
/* For each file */
/* Validate the identity and compat ranges */
/* Make the image chunks */
@ -502,45 +502,6 @@ int main ( int argc, char **argv )
/* Will result flashed code rebooting. */
}
#if 0
if (opt_dumppda) {
switch (opt_dumppda)
{
case 2: /* from file */
case 3: /* combination */
if ( !opt_addpdrs && !opt_newpda ) {
fprintf(stderr, APPNAME":warning - no PDR or PDA files specified.\n");
}
}
} else {
if ( !opt_tfile ) {
fprintf(stderr, APPNAME":error - no image file specfied\n");
return 1;
}
}
/* Initialize data structures */
/* Read files */
/*
if ( opt_newpda ) {
read_pdrfile(pdafilename, 1);
}
if ( opt_addpdrs ) {
read_pdrfile(pdrfilename, 0);
}
*/
if ( opt_tfile ) {
result = read_srecfile(tfilename);
if ( result ) {
fprintf(stderr, APPNAME": failed to read srec file, terminating\n");
return result;
}
}
#endif
return result;
}

View file

@ -1238,6 +1238,7 @@ int hfa384x_copy_to_bap(hfa384x_t *hw, UINT16 bap, UINT16 id, UINT16 offset,
/* Write id to select reg */
outw(host2hfa384x_16(id), selectreg);
udelay(10);
/* Write offset to offset reg */
outw(host2hfa384x_16(offset), offsetreg);
/* Wait (max 100us) for offset[busy] to clear */