summaryrefslogtreecommitdiff
path: root/drivers/block/ahci.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-05-12 22:49:24 +0800
committerTerry Lv <r65388@freescale.com>2010-06-24 16:54:31 +0800
commit90bfe6af18c84a7e3ba424cba0c2602d883bd286 (patch)
tree815e35b0cefc847806cef9a8df09bdad1c3955ad /drivers/block/ahci.c
parent6fa1a0ea0c589b327e8106d13ffff115d2553284 (diff)
downloadu-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.zip
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.gz
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.bz2
ENGR00122651: Add dwc_ahsata support
Add dwc_ahsata support. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/block/ahci.c')
-rw-r--r--drivers/block/ahci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index a3ca2dc..0ca220d 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -1,4 +1,7 @@
/*
+ * (C) Copyright 2008-2010 Freescale Semiconductor, Inc.
+ * Terry Lv <r65388@freescale.com>
+ *
* Copyright (C) Freescale Semiconductor, Inc. 2006.
* Author: Jason Jin<Jason.jin@freescale.com>
* Zhang Wei<wei.zhang@freescale.com>
@@ -390,7 +393,7 @@ static int ahci_port_start(u8 port)
*/
pp->cmd_slot = (struct ahci_cmd_hdr *)mem;
debug("cmd_slot = 0x%x\n", pp->cmd_slot);
- mem += (AHCI_CMD_SLOT_SZ + 224);
+ mem += (AHCI_CMD_SLOT_SZ * AHCI_MAX_CMD_SLOT);
/*
* Second item: Received-FIS area