summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-10-29 05:23:50 +0000
committerTom Rini <trini@ti.com>2012-11-02 15:20:41 -0700
commit7ba7917c91b875d1cd54dadfcca07d839b75e2a5 (patch)
tree64266707dd923e06ccbc15dbbd130bbded0d772f /drivers
parent9a65b8754c57e8640e208b9743272b9c74527e0e (diff)
downloadu-boot-7ba7917c91b875d1cd54dadfcca07d839b75e2a5.tar.gz
u-boot-7ba7917c91b875d1cd54dadfcca07d839b75e2a5.tar.bz2
u-boot-7ba7917c91b875d1cd54dadfcca07d839b75e2a5.zip
ahci: Improve AHCI debugging
- remove unused ssleep macro - add some useful debugging information Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/ahci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index ad397dcb6a..af31c97533 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -68,7 +68,6 @@ static void ahci_setup_port(struct ahci_ioports *port, unsigned long base,
#define msleep(a) udelay(a * 1000)
-#define ssleep(a) msleep(a * 1000)
static int waiting_for_cmd_completed(volatile u8 *offset,
int timeout_msec,
@@ -153,6 +152,7 @@ static int ahci_host_init(struct ahci_probe_ent *probe_ent)
tmp = readl(port_mmio + PORT_CMD);
if (tmp & (PORT_CMD_LIST_ON | PORT_CMD_FIS_ON |
PORT_CMD_FIS_RX | PORT_CMD_START)) {
+ debug("Port %d is active. Deactivating.\n", i);
tmp &= ~(PORT_CMD_LIST_ON | PORT_CMD_FIS_ON |
PORT_CMD_FIS_RX | PORT_CMD_START);
writel_with_flush(tmp, port_mmio + PORT_CMD);
@@ -163,6 +163,7 @@ static int ahci_host_init(struct ahci_probe_ent *probe_ent)
msleep(500);
}
+ debug("Spinning up port %d... ", i);
writel(PORT_CMD_SPIN_UP, port_mmio + PORT_CMD);
j = 0;