diff options
author | Terry Lv <r65388@freescale.com> | 2010-05-12 22:49:24 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2010-06-24 16:54:31 +0800 |
commit | 90bfe6af18c84a7e3ba424cba0c2602d883bd286 (patch) | |
tree | 815e35b0cefc847806cef9a8df09bdad1c3955ad /common | |
parent | 6fa1a0ea0c589b327e8106d13ffff115d2553284 (diff) | |
download | u-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 'common')
-rw-r--r-- | common/cmd_sata.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/common/cmd_sata.c b/common/cmd_sata.c index 1693a7e..cd21f2a 100644 --- a/common/cmd_sata.c +++ b/common/cmd_sata.c @@ -1,4 +1,7 @@ /* + * (C) Copyright 2008-2010 Freescale Semiconductor, Inc. + * Terry Lv <r65388@freescale.com> + * * Copyright (C) 2000-2005, DENX Software Engineering * Wolfgang Denk <wd@denx.de> * Copyright (C) Procsys. All rights reserved. @@ -48,9 +51,12 @@ int __sata_initialize(void) sata_dev_desc[i].block_write = sata_write; rc = init_sata(i); - rc = scan_sata(i); - if ((sata_dev_desc[i].lba > 0) && (sata_dev_desc[i].blksz > 0)) - init_part(&sata_dev_desc[i]); + if (!rc) { + rc = scan_sata(i); + if ((sata_dev_desc[i].lba > 0) && + (sata_dev_desc[i].blksz > 0)) + init_part(&sata_dev_desc[i]); + } } sata_curr_device = 0; return rc; |