Skip to content

Commit

Permalink
mmc: tmio: name 0xd8 as CTL_DMA_ENABLE
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Magnus Damm <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
horms authored and cjb committed Jul 20, 2011
1 parent 4c2b8f2 commit 95c7348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/tmio_mmc_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions include/linux/mmc/tmio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95c7348

Please sign in to comment.