Guest User

Untitled

a guest
Nov 11th, 2014
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/firmware/target/arm/imx233/sdmmc-imx233.c
  2. +++ b/firmware/target/arm/imx233/sdmmc-imx233.c
  3. @@ -300,10 +300,12 @@ static bool send_cmd(int drive, uint8_t cmd, uint32_t arg, uint32_t flags, uint3
  4.      if((flags & MCI_ACMD) && !send_cmd(drive, SD_APP_CMD, SDMMC_RCA(drive), MCI_RESP, resp))
  5.          return false;
  6.  
  7. +    _logf("sd: send_cmd(%d,%x,%x)", drive, cmd, arg);
  8.      enum imx233_ssp_resp_t resp_type = (flags & MCI_LONG_RESP) ? SSP_LONG_RESP :
  9.          (flags & MCI_RESP) ? SSP_SHORT_RESP : SSP_NO_RESP;
  10.      enum imx233_ssp_error_t ret = imx233_ssp_sd_mmc_transfer(SDMMC_SSP(drive), cmd,
  11.          arg, resp_type, NULL, 0, !!(flags & MCI_BUSY), false, resp);
  12. +    _logf("sd: ret = %d, resp = %x,%x,%x,%x", ret, resp[0], resp[1], resp[2], resp[3]);
  13.      if(resp_type == SSP_LONG_RESP)
  14.      {
  15.          /* Our SD codes assume most significant word first, so reverse resp */
RAW Paste Data