diff options
author | Thierry Reding <treding@nvidia.com> | 2015-07-22 15:34:33 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2015-07-27 15:54:02 -0700 |
commit | c39e2a75fddce793c89647ccb0500dfe6a1eac05 (patch) | |
tree | 95f8414373d3642827ae8bed65c4869a2db06143 /drivers | |
parent | 8e67c5d0475f65031e5e1687a816eea4eb609164 (diff) | |
download | u-boot-imx-c39e2a75fddce793c89647ccb0500dfe6a1eac05.zip u-boot-imx-c39e2a75fddce793c89647ccb0500dfe6a1eac05.tar.gz u-boot-imx-c39e2a75fddce793c89647ccb0500dfe6a1eac05.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/tegra_mmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index d555692..31b6c56 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -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, data->blocksize); - writel((u32)bbstate->bounce_buffer, &host->reg->sysad); + writel((u32)(unsigned long)bbstate->bounce_buffer, &host->reg->sysad); /* * DMASEL[4:3] * 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) { /* CRC is stripped so we need to do some shifting. */ for (i = 0; i < 4; i++) { - unsigned int offset = - (unsigned int)(&host->reg->rspreg3 - i); + unsigned long offset = + (unsigned long)(&host->reg->rspreg3 - i); cmd->response[i] = readl(offset) << 8; if (i != 3) { |