| From 92448997a8190180d93ffc4e48be91a99fca2c41 Mon Sep 17 00:00:00 2001 |
| From: Simon Horman <horms@verge.net.au> |
| Date: Tue, 21 Jun 2011 08:00:08 +0900 |
| Subject: mmc: tmio: name 0xd8 as CTL_DMA_ENABLE |
| |
| This reflects at least the current usage of this register |
| and I think it improves the readability of the code ever so slightly. |
| |
| Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
| Cc: Magnus Damm <magnus.damm@gmail.com> |
| Signed-off-by: Simon Horman <horms@verge.net.au> |
| Signed-off-by: Chris Ball <cjb@laptop.org> |
| (cherry picked from commit 95c7348d948dc4832434ddfaeba804ac14732f02) |
| |
| Signed-off-by: Simon Horman <horms@verge.net.au> |
| --- |
| drivers/mmc/host/tmio_mmc_dma.c | 2 +- |
| include/linux/mmc/tmio.h | 1 + |
| 2 files changed, 2 insertions(+), 1 deletion(-) |
| |
| diff --git a/drivers/mmc/host/tmio_mmc_dma.c b/drivers/mmc/host/tmio_mmc_dma.c |
| index 25f1ad6..9c4da66 100644 |
| --- a/drivers/mmc/host/tmio_mmc_dma.c |
| +++ b/drivers/mmc/host/tmio_mmc_dma.c |
| @@ -26,7 +26,7 @@ static void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) |
| { |
| #if defined(CONFIG_SUPERH) || defined(CONFIG_ARCH_SHMOBILE) |
| /* Switch DMA mode on or off - SuperH specific? */ |
| - writew(enable ? 2 : 0, host->ctl + (0xd8 << host->bus_shift)); |
| + writew(enable ? 2 : 0, host->ctl + (CTL_DMA_ENABLE << host->bus_shift)); |
| #endif |
| } |
| |
| diff --git a/include/linux/mmc/tmio.h b/include/linux/mmc/tmio.h |
| index 551490f..3ae3776 100644 |
| --- a/include/linux/mmc/tmio.h |
| +++ b/include/linux/mmc/tmio.h |
| @@ -30,6 +30,7 @@ |
| #define CTL_TRANSACTION_CTL 0x34 |
| #define CTL_SDIO_STATUS 0x36 |
| #define CTL_SDIO_IRQ_MASK 0x38 |
| +#define CTL_DMA_ENABLE 0xd8 |
| #define CTL_RESET_SD 0xe0 |
| #define CTL_SDIO_REGS 0x100 |
| #define CTL_CLK_AND_WAIT_CTL 0x138 |
| -- |
| 1.7.10.2.565.gbd578b5 |
| |