RE: [U-Boot-Users] Silicon Image 0680A and CF-ATA drive

Which is excactly what I am doing on real HW. The base address define is set to a variable that I use pci_find_device() and base address register 5 to set the address of.
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Andrew Dyer Sent: Monday, July 25, 2005 14:22 To: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Silicon Image 0680A and CF-ATA drive
On 7/25/05, Rune Torgersen runet@innovsys.com wrote:
Didn't implement anything at all. I just used the generic IDE driver already present in U-Boot. All I had to change were those four #defines.
If you turned on PCI_CONFIG_PNP this might break, especially if the ide adapter was on a card and/or there were other cards as options.
For a generic driver it might be better to use pci_find_device() to fetch the register addressing.
-- Hardware, n.: The parts of a computer system that can be kicked.
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=ick _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

--- Rune Torgersen runet@innovsys.com wrote:
Which is excactly what I am doing on real HW. The base address define is set to a variable that I use pci_find_device() and base address register 5 to set the address of.
I also use pci_find_device() to get the bdf value of the Sil 0680A device on the PCI bus, then use this bdf to allocate memory for BARs. And according to the datasheet, I/O space access, memory space access, and bus master operation need to be enabled as well. So some implementation are needed besides changing the config params. Moreover, since I'd like to support POST for this device and the CF-ATA drives that connect to it, my driver needs to do more than these basic steps.
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net]
On Behalf
Of Andrew Dyer Sent: Monday, July 25, 2005 14:22 To: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Silicon Image 0680A
and CF-ATA drive
On 7/25/05, Rune Torgersen runet@innovsys.com
wrote:
Didn't implement anything at all. I just used
the generic IDE driver
already present in U-Boot. All I had to change were those four #defines.
If you turned on PCI_CONFIG_PNP this might break,
especially if the
ide adapter was on a card and/or there were other
cards as options.
For a generic driver it might be better to use
pci_find_device() to
fetch the register addressing.
-- Hardware, n.: The parts of a computer system that can be
kicked.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux
Migration Strategies
from IBM. Find simple to follow Roadmaps,
straightforward articles,
informative Webcasts and more! Get everything you
need to get up to
speed, fast.
http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=ick
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (2)
-
Rune Torgersen
-
Sam Pham