mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2025-12-30 01:34:14 +08:00
DwcSdhciDxe: Disable ADMA2 to avoid data corruption
This controller has the limitation that a single ADMA2 descriptor cannot cross 128 MB boundaries and must be split. This would require a patch in SdMmcPciHcDxe, but SDMA works fine for the time being. Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
This commit is contained in:
@@ -59,6 +59,15 @@ EmmcSdMmcCapability (
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable ADMA2 to avoid data corruption.
|
||||
// This controller has the limitation that a single descriptor
|
||||
// cannot cross 128 MB boundaries and must be split.
|
||||
// This would require a patch in SdMmcPciHcDxe, but SDMA works
|
||||
// fine for the time being.
|
||||
//
|
||||
Capability->Adma2 = 0;
|
||||
|
||||
Capability->Hs400 = !EMMC_DISABLE_HS400;
|
||||
|
||||
if (EMMC_FORCE_HIGH_SPEED) {
|
||||
|
||||
Reference in New Issue
Block a user