Fix AHBMemFlush

This commit is contained in:
marcan 2009-01-15 16:46:50 +01:00 committed by bushing
parent b066d87b66
commit ac5818b466

View File

@ -150,7 +150,7 @@ void ahb_memflush(enum AHBDEV dev)
break;
}
write32(MEM_FLUSHREQ, req);
write16(MEM_FLUSHREQ, req);
for(i=0;i<1000000;i++) {
ack = read16(MEM_FLUSHACK);
@ -158,7 +158,7 @@ void ahb_memflush(enum AHBDEV dev)
if(ack == req)
break;
}
write32(MEM_FLUSHREQ, 0);
write16(MEM_FLUSHREQ, 0);
if(i>=1000000) {
gecko_printf("ahb_memflush(%d): Flush (0x%x) did not ack!\n", dev, req);
}