From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sun, 29 Jul 2012 08:55:40 +0200 Subject: [U-Boot] dwc_ahsata vs ahci In-Reply-To: <1976917.If85v0vZIe@merom> References: <1976917.If85v0vZIe@merom> Message-ID: <5014DE6C.5070109@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 28/07/2012 15:44, Pavel Herrmann wrote: > Hi, > Hi Pavel, > While working on the DM project, I found out that there are two > implementations of AHCI drivers - one in block/ahci.c, one in > block/dwc_ahsata.c > ooopppss ! > what is the difference between them (apart from the obvious, ahci.c exposes > SCSI API, dwc_ahsata exposes SATA API)? are there any problems that would > prevent me from merging them? No, there are not evident reasons ! dwc_asata was inserted to add SATA support for Freescale MX5 family, and I missed that a similar driver was already in u-boot. dwc_ahsata was ported from Freescale's u-boot, and linked only for MX5 / MX6 SOCs. I think it is a very good idea to merge the two drivers (dwc_ahsata seems an updated version of the original driver), thanks to note this ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================