sd_card & imx53: flush ADMA2 writes via DSB

We have to issue a data synchronization barrier after writing a ADMA2
table to ensure that the corresponding write commands were actually
executed before issuing the SD command.

Ref #1497
This commit is contained in:
Martin Stein 2015-10-22 16:29:02 +02:00 committed by Christian Helmuth
parent bd7fe4160d
commit 48e7d29686
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ namespace Adma2
_base_virt[index] = desc;
consumed += curr;
}
/* ensure that all descriptor writes were actually executed */
asm volatile ("dsb");
return true;
}