From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] SATA support?
Date: Thu, 10 Feb 2011 13:08:35 +0100 [thread overview]
Message-ID: <4D53D543.2020802@free.fr> (raw)
In-Reply-To: <201102091723.59584.Aaron.Williams@caviumnetworks.com>
Le 10/02/2011 02:23, Aaron Williams a ?crit :
> On Tuesday, February 08, 2011 10:08:12 pm Albert ARIBAUD wrote:
>> Hi Aaron,
>>
>> Le 08/02/2011 22:58, Aaron Williams a ?crit :
>>> Hi,
>>>
>>> I'm trying to compile AHCI support but I'm running into a lot of
>>> problems. It looks like AHCI is based off of SCSI whereas other SATA
>>> drivers appear not to be. Is ahci.c being maintained or should I use one
>>> of the other drivers? Currently for my testing I have a couple Silicon
>>> Image 3132 PCIe boards.
>>>
>>> -Aaron Williams
>>
>> I cannot answer on SATA[/PCIe] as such, but depending on your
>> requirements and your hardware, you may possibly find it easier to use
>> IDE/(P)ATA hardware emulation like I did on the ARM edminiv2 board.
>>
>> Amicalement,
>
> One problem is that we're already using the IDE/(P)ATA for our compact flash
> which is not on the PCI bus. I was hoping to use the SATA AHCI support but it
> looks like it hasn't been maintained.
Hmm... I see an awful hack coming: you could try and define
CONFIG_SYS_ATA_BASE_ADDR, CONFIG_SYS_ATA_IDE0_OFFSET and
CONFIG_SYS_ATA_IDE1_OFFSET so that IDE0 points to the CompactFlash port
and IDE1 points to the SATA compatibility register. Not sure how this
would work out as a not-so-quick-but-very-dirty fix.
The cleaner way would be to modify cmd_ide.c to not limit itself to two
ports, and not use offsets but a real port base, and then in your case,
properly declare IDE0 and IDE1 for CompactFlash and SATA respectively.
I had started such work, actually, to support a LaCie board with two
SATA controllers with four ports each; I'll try and dig it out.
Amicalement,
--
Albert.
prev parent reply other threads:[~2011-02-10 12:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 21:58 [U-Boot] SATA support? Aaron Williams
2011-02-09 6:08 ` Albert ARIBAUD
2011-02-10 1:23 ` Aaron Williams
2011-02-10 12:08 ` Albert ARIBAUD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D53D543.2020802@free.fr \
--to=albert.aribaud@free.fr \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox