aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mxs-mmc.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-05-05 07:40:09 -0400
committerShawn Guo <shawn.guo@linaro.org>2012-05-12 20:05:07 -0400
commit70e60206885b227ff17a88e83145efe33917db24 (patch)
treefa2d0141b20bbe3627e94141a71f082dde08ce0b /drivers/mmc/host/mxs-mmc.c
parentce4c6f9b5987ac9402788c518bc5bd8b8572aa1e (diff)
mmc: mxs-mmc: use global stmp_device functionality
Use global stmp_device functionality to reduce mach-dependency. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/mxs-mmc.c')
-rw-r--r--drivers/mmc/host/mxs-mmc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index bb03ddda481d..2ea53613c794 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -40,9 +40,9 @@
40#include <linux/module.h> 40#include <linux/module.h>
41#include <linux/fsl/mxs-dma.h> 41#include <linux/fsl/mxs-dma.h>
42#include <linux/pinctrl/consumer.h> 42#include <linux/pinctrl/consumer.h>
43#include <linux/stmp_device.h>
43 44
44#include <mach/mxs.h> 45#include <mach/mxs.h>
45#include <mach/common.h>
46#include <mach/mmc.h> 46#include <mach/mmc.h>
47 47
48#define DRIVER_NAME "mxs-mmc" 48#define DRIVER_NAME "mxs-mmc"
@@ -191,7 +191,7 @@ static void mxs_mmc_reset(struct mxs_mmc_host *host)
191{ 191{
192 u32 ctrl0, ctrl1; 192 u32 ctrl0, ctrl1;
193 193
194 mxs_reset_block(host->base); 194 stmp_reset_block(host->base);
195 195
196 ctrl0 = BM_SSP_CTRL0_IGNORE_CRC; 196 ctrl0 = BM_SSP_CTRL0_IGNORE_CRC;
197 ctrl1 = BF_SSP(0x3, CTRL1_SSP_MODE) | 197 ctrl1 = BF_SSP(0x3, CTRL1_SSP_MODE) |
@@ -279,7 +279,7 @@ static irqreturn_t mxs_mmc_irq_handler(int irq, void *dev_id)
279 279
280 stat = readl(host->base + HW_SSP_CTRL1); 280 stat = readl(host->base + HW_SSP_CTRL1);
281 writel(stat & MXS_MMC_IRQ_BITS, 281 writel(stat & MXS_MMC_IRQ_BITS,
282 host->base + HW_SSP_CTRL1 + MXS_CLR_ADDR); 282 host->base + HW_SSP_CTRL1 + STMP_OFFSET_REG_CLR);
283 283
284 if ((stat & BM_SSP_CTRL1_SDIO_IRQ) && (stat & BM_SSP_CTRL1_SDIO_IRQ_EN)) 284 if ((stat & BM_SSP_CTRL1_SDIO_IRQ) && (stat & BM_SSP_CTRL1_SDIO_IRQ_EN))
285 mmc_signal_sdio_irq(host->mmc); 285 mmc_signal_sdio_irq(host->mmc);
@@ -637,18 +637,18 @@ static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
637 637
638 if (enable) { 638 if (enable) {
639 writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK, 639 writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK,
640 host->base + HW_SSP_CTRL0 + MXS_SET_ADDR); 640 host->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET);
641 writel(BM_SSP_CTRL1_SDIO_IRQ_EN, 641 writel(BM_SSP_CTRL1_SDIO_IRQ_EN,
642 host->base + HW_SSP_CTRL1 + MXS_SET_ADDR); 642 host->base + HW_SSP_CTRL1 + STMP_OFFSET_REG_SET);
643 643
644 if (readl(host->base + HW_SSP_STATUS) & BM_SSP_STATUS_SDIO_IRQ) 644 if (readl(host->base + HW_SSP_STATUS) & BM_SSP_STATUS_SDIO_IRQ)
645 mmc_signal_sdio_irq(host->mmc); 645 mmc_signal_sdio_irq(host->mmc);
646 646
647 } else { 647 } else {
648 writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK, 648 writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK,
649 host->base + HW_SSP_CTRL0 + MXS_CLR_ADDR); 649 host->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR);
650 writel(BM_SSP_CTRL1_SDIO_IRQ_EN, 650 writel(BM_SSP_CTRL1_SDIO_IRQ_EN,
651 host->base + HW_SSP_CTRL1 + MXS_CLR_ADDR); 651 host->base + HW_SSP_CTRL1 + STMP_OFFSET_REG_CLR);
652 } 652 }
653 653
654 spin_unlock_irqrestore(&host->lock, flags); 654 spin_unlock_irqrestore(&host->lock, flags);