diff options
author | Philip Rakity <prakity@marvell.com> | 2010-11-30 00:55:23 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-01-08 22:48:03 -0500 |
commit | e8120ad129c160ff5b2e2b197d025a2cd661c2f2 (patch) | |
tree | b5f0cd9da8d8c0d5e0a1409379ff58a1a285cc97 /drivers/mmc | |
parent | 04566831a703ae3ef4b49a2deae261c9ed26e020 (diff) |
mmc: sdhci: print SD Command and CAPABILITY_1 when dumping registers
More information should be shown when sdhci_dumpregs is called.
Knowing the command is useful for debugging, and Capability 1
is useful for SD v3.
Signed-off-by: Philip Rakity <prakity@marvell.com>
Reviewed-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 5 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index a25db426c910..8a74fcbfe13b 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -77,8 +77,11 @@ static void sdhci_dumpregs(struct sdhci_host *host) | |||
77 | printk(KERN_DEBUG DRIVER_NAME ": AC12 err: 0x%08x | Slot int: 0x%08x\n", | 77 | printk(KERN_DEBUG DRIVER_NAME ": AC12 err: 0x%08x | Slot int: 0x%08x\n", |
78 | sdhci_readw(host, SDHCI_ACMD12_ERR), | 78 | sdhci_readw(host, SDHCI_ACMD12_ERR), |
79 | sdhci_readw(host, SDHCI_SLOT_INT_STATUS)); | 79 | sdhci_readw(host, SDHCI_SLOT_INT_STATUS)); |
80 | printk(KERN_DEBUG DRIVER_NAME ": Caps: 0x%08x | Max curr: 0x%08x\n", | 80 | printk(KERN_DEBUG DRIVER_NAME ": Caps: 0x%08x | Caps_1: 0x%08x\n", |
81 | sdhci_readl(host, SDHCI_CAPABILITIES), | 81 | sdhci_readl(host, SDHCI_CAPABILITIES), |
82 | sdhci_readl(host, SDHCI_CAPABILITIES_1)); | ||
83 | printk(KERN_DEBUG DRIVER_NAME ": Cmd: 0x%08x | Max curr: 0x%08x\n", | ||
84 | sdhci_readw(host, SDHCI_COMMAND), | ||
82 | sdhci_readl(host, SDHCI_MAX_CURRENT)); | 85 | sdhci_readl(host, SDHCI_MAX_CURRENT)); |
83 | 86 | ||
84 | if (host->flags & SDHCI_USE_ADMA) | 87 | if (host->flags & SDHCI_USE_ADMA) |
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index e42d7f00c060..1efe7dc5255b 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h | |||
@@ -165,7 +165,7 @@ | |||
165 | #define SDHCI_CAN_VDD_180 0x04000000 | 165 | #define SDHCI_CAN_VDD_180 0x04000000 |
166 | #define SDHCI_CAN_64BIT 0x10000000 | 166 | #define SDHCI_CAN_64BIT 0x10000000 |
167 | 167 | ||
168 | /* 44-47 reserved for more caps */ | 168 | #define SDHCI_CAPABILITIES_1 0x44 |
169 | 169 | ||
170 | #define SDHCI_MAX_CURRENT 0x48 | 170 | #define SDHCI_MAX_CURRENT 0x48 |
171 | 171 | ||