/* Supply EMMC card with lowest clock frequency at initialization. */
EFI_STATUS EmmcPeimHcInitClockFreq(IN UINTN Bar)
/* Supply EMMC card with lowest clock frequency at initialization. */
EFI_STATUS EmmcPeimHcInitClockFreq(IN UINTN Bar)
{
  EFI_STATUS        Status;
  EMMC_HC_SLOT_CAP  Capability;
  UINT32            InitFreq;
  Status = EmmcPeimHcGetCapability (Bar, &Capability);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  if (Capability.BaseClkFreq == 0) {
    return EFI_UNSUPPORTED;
  }
  InitFreq = 400;
  Status   = EmmcPeimHcClockSupply (Bar, InitFreq);
  return Status;
}