mmc: tegra: Build warning fixes for 64-bit
Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8e67c5d047
commit
c39e2a75fd
|
@ -67,7 +67,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data,
|
||||||
bbstate->bounce_buffer, bbstate->user_buffer, data->blocks,
|
bbstate->bounce_buffer, bbstate->user_buffer, data->blocks,
|
||||||
data->blocksize);
|
data->blocksize);
|
||||||
|
|
||||||
writel((u32)bbstate->bounce_buffer, &host->reg->sysad);
|
writel((u32)(unsigned long)bbstate->bounce_buffer, &host->reg->sysad);
|
||||||
/*
|
/*
|
||||||
* DMASEL[4:3]
|
* DMASEL[4:3]
|
||||||
* 00 = Selects SDMA
|
* 00 = Selects SDMA
|
||||||
|
@ -233,8 +233,8 @@ static int mmc_send_cmd_bounced(struct mmc *mmc, struct mmc_cmd *cmd,
|
||||||
if (cmd->resp_type & MMC_RSP_136) {
|
if (cmd->resp_type & MMC_RSP_136) {
|
||||||
/* CRC is stripped so we need to do some shifting. */
|
/* CRC is stripped so we need to do some shifting. */
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
unsigned int offset =
|
unsigned long offset =
|
||||||
(unsigned int)(&host->reg->rspreg3 - i);
|
(unsigned long)(&host->reg->rspreg3 - i);
|
||||||
cmd->response[i] = readl(offset) << 8;
|
cmd->response[i] = readl(offset) << 8;
|
||||||
|
|
||||||
if (i != 3) {
|
if (i != 3) {
|
||||||
|
|
Loading…
Reference in New Issue