aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_pio.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-03-24 04:48:36 -0400
committerChris Ball <cjb@laptop.org>2011-03-26 15:58:50 -0400
commitcba179aec779b364a683906b99e23014c7652e8e (patch)
treef88c1be6d919591ab6ee41c736248437887a8963 /drivers/mmc/host/tmio_mmc_pio.c
parent5fd0157901d5a8f497f3d3b95cb4beebf1641d1b (diff)
mmc: tmio_mmc: Move some defines into a shared header
Also add TMIO_BBS. This allows these defines to also be used by zboot. Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc_pio.c')
-rw-r--r--drivers/mmc/host/tmio_mmc_pio.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
index e35e17992e38..6ae8d2f00ec7 100644
--- a/drivers/mmc/host/tmio_mmc_pio.c
+++ b/drivers/mmc/host/tmio_mmc_pio.c
@@ -35,6 +35,7 @@
35#include <linux/irq.h> 35#include <linux/irq.h>
36#include <linux/mfd/tmio.h> 36#include <linux/mfd/tmio.h>
37#include <linux/mmc/host.h> 37#include <linux/mmc/host.h>
38#include <linux/mmc/tmio.h>
38#include <linux/module.h> 39#include <linux/module.h>
39#include <linux/pagemap.h> 40#include <linux/pagemap.h>
40#include <linux/platform_device.h> 41#include <linux/platform_device.h>
@@ -44,26 +45,6 @@
44 45
45#include "tmio_mmc.h" 46#include "tmio_mmc.h"
46 47
47#define CTL_SD_CMD 0x00
48#define CTL_ARG_REG 0x04
49#define CTL_STOP_INTERNAL_ACTION 0x08
50#define CTL_XFER_BLK_COUNT 0xa
51#define CTL_RESPONSE 0x0c
52#define CTL_STATUS 0x1c
53#define CTL_IRQ_MASK 0x20
54#define CTL_SD_CARD_CLK_CTL 0x24
55#define CTL_SD_XFER_LEN 0x26
56#define CTL_SD_MEM_CARD_OPT 0x28
57#define CTL_SD_ERROR_DETAIL_STATUS 0x2c
58#define CTL_SD_DATA_PORT 0x30
59#define CTL_TRANSACTION_CTL 0x34
60#define CTL_SDIO_STATUS 0x36
61#define CTL_SDIO_IRQ_MASK 0x38
62#define CTL_RESET_SD 0xe0
63#define CTL_SDIO_REGS 0x100
64#define CTL_CLK_AND_WAIT_CTL 0x138
65#define CTL_RESET_SDIO 0x1e0
66
67static u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr) 48static u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
68{ 49{
69 return readw(host->ctl + (addr << host->bus_shift)); 50 return readw(host->ctl + (addr << host->bus_shift));