Browse Source

dw: mmc: disable UHS config. vf2 do not support this.

emmc read pass.

Signed-off-by: minda.chen <minda.chen@starfivetech.com>
minda.chen 1 year ago
parent
commit
4dfc643668
1 changed files with 6 additions and 5 deletions
  1. 6 5
      Silicon/Synopsys/DesignWare/Drivers/DwEmmcDxe/DwEmmcDxe.c

+ 6 - 5
Silicon/Synopsys/DesignWare/Drivers/DwEmmcDxe/DwEmmcDxe.c

@@ -314,7 +314,7 @@ SendCommand (
   MmioWrite32 (DWEMMC_CMDARG, Argument);
   MmioWrite32 (DWEMMC_CMD, MmcCmd);
 
-  //DEBUG ((DEBUG_INFO, "send cmd %d\n", MmcCmd & 0x3f));
+  //DEBUG ((DEBUG_INFO, "send cmd %d arg %x\n", MmcCmd & 0x3f, Argument));
 
   ErrMask = DWEMMC_INT_EBE | DWEMMC_INT_HLE | DWEMMC_INT_RTO |
             DWEMMC_INT_RCRC | DWEMMC_INT_RE;
@@ -723,19 +723,20 @@ DwEmmcSetIos (
     switch (TimingMode) {
     case EMMCHS52DDR1V2:
     case EMMCHS52DDR1V8:
-      Data |= 1 << 16;
-      break;
+      //Data |= 1 << 16;
+      //break;
+      return EFI_UNSUPPORTED;
     case EMMCHS52:
     case EMMCHS26:
       Data &= ~(1 << 16);
       break;
     default:
-      return EFI_UNSUPPORTED;
+      break;
     }
     MmioWrite32 (DWEMMC_UHSREG, Data);
   }
 
-  DEBUG ((DEBUG_INFO, "Set bus width %d clock %d\n",BusWidth, BusClockFreq));
+  //DEBUG ((DEBUG_INFO, "Set bus width %d clock %d\n",BusWidth, BusClockFreq));
 
   switch (BusWidth) {
   case 1: