Skip to content

Commit

Permalink
Silicon/Rockchip: Add HS400 disable flag for SDHCI
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobalanica committed Aug 3, 2023
1 parent 4584499 commit 6f41ec8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "DwcSdhciDxe.h"

#define EMMC_FORCE_HIGH_SPEED FixedPcdGetBool(PcdDwcSdhciForceHighSpeed)
#define EMMC_DISABLE_HS400 FixedPcdGetBool(PcdDwcSdhciDisableHs400)

STATIC EFI_HANDLE mSdMmcControllerHandle;

Expand Down Expand Up @@ -58,7 +59,7 @@ EmmcSdMmcCapability (
return EFI_NOT_FOUND;
}

Capability->Hs400 = 1;
Capability->Hs400 = !EMMC_DISABLE_HS400;

if (EMMC_FORCE_HIGH_SPEED) {
Capability->BaseClkFreq = 52;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
[Pcd]
gRockchipTokenSpaceGuid.PcdDwcSdhciBaseAddress
gRockchipTokenSpaceGuid.PcdDwcSdhciForceHighSpeed
gRockchipTokenSpaceGuid.PcdDwcSdhciDisableHs400

[Depex]
TRUE
1 change: 1 addition & 0 deletions edk2-rockchip/Silicon/Rockchip/RockchipPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

gRockchipTokenSpaceGuid.PcdDwcSdhciBaseAddress|0x0|UINT32|0x40000035
gRockchipTokenSpaceGuid.PcdDwcSdhciForceHighSpeed|FALSE|BOOLEAN|0x40000036
gRockchipTokenSpaceGuid.PcdDwcSdhciDisableHs400|FALSE|BOOLEAN|0x40000037

gRockchipTokenSpaceGuid.SpiRK806BaseAddr|0|UINT32|0x21200002

Expand Down

0 comments on commit 6f41ec8

Please sign in to comment.