Line 405... |
Line 405... |
host->mrq->cmd->resp[0] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[0] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[1] = 0xaaaaaaaa;
|
host->mrq->cmd->resp[1] = 0xaaaaaaaa;
|
host->mrq->cmd->resp[2] = 0xbbbbbbbb;
|
host->mrq->cmd->resp[2] = 0xbbbbbbbb;
|
host->mrq->cmd->resp[3] = 0;
|
host->mrq->cmd->resp[3] = 0;
|
mmc_request_done(host->mmc, host->mrq);
|
mmc_request_done(host->mmc, host->mrq);
|
|
} //XXX:
|
|
else if(host->mrq->cmd->opcode == 9)
|
|
{
|
|
host->mrq->cmd->resp[0] = 0x006f0032;
|
|
host->mrq->cmd->resp[1] = 0x5b5983bf;
|
|
host->mrq->cmd->resp[2] = 0xf6dbdfff;
|
|
host->mrq->cmd->resp[3] = 0x0a4041ff;
|
|
mmc_request_done(host->mmc, host->mrq);
|
}
|
}
|
|
|
else {
|
else {
|
host->word_cnt+=1;
|
host->word_cnt+=1;
|
switch(host->word_cnt-1)
|
switch(host->word_cnt-1)
|
{
|
{
|
case (0):
|
case (0):
|
host->mrq->cmd->resp[3] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[0] = readl(host->base + SD_RESP1);
|
ocores_start_cmd(host, host->mrq->cmd);
|
ocores_start_cmd(host, host->mrq->cmd);
|
break;
|
break;
|
case (1):
|
case (1):
|
host->mrq->cmd->resp[2] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[1] = readl(host->base + SD_RESP1);
|
ocores_start_cmd(host, host->mrq->cmd);
|
ocores_start_cmd(host, host->mrq->cmd);
|
break;
|
break;
|
case (2):
|
case (2):
|
host->mrq->cmd->resp[1] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[2] = readl(host->base + SD_RESP1);
|
ocores_start_cmd(host, host->mrq->cmd);
|
ocores_start_cmd(host, host->mrq->cmd);
|
break;
|
break;
|
case (3):
|
case (3):
|
host->mrq->cmd->resp[0] = readl(host->base + SD_RESP1);
|
host->mrq->cmd->resp[3] = readl(host->base + SD_RESP1);
|
mmc_request_done(host->mmc, host->mrq);
|
mmc_request_done(host->mmc, host->mrq);
|
break;
|
break;
|
}
|
}
|
}
|
}
|
}
|
}
|