]> git.sur5r.net Git - u-boot/commitdiff
mmc: tegra: Build warning fixes for 64-bit
authorThierry Reding <treding@nvidia.com>
Wed, 22 Jul 2015 21:34:33 +0000 (15:34 -0600)
committerTom Warren <twarren@nvidia.com>
Mon, 27 Jul 2015 22:54:02 +0000 (15:54 -0700)
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>
drivers/mmc/tegra_mmc.c

index d555692f7fc0626c659e5e4712bc9666a7c726b5..31b6c56900b6aa759516d9bcf5d99d56d3c7a202 100644 (file)
@@ -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) {