[U-Boot] configure ppc440spe as pci adapter

I'm trying to get my ppc440spe (Katmai) board to initialize in PCI adapter mode. I was hoping that someone could give me some pointers on what changes I need in the katmai config file, i.e. do I need to define CONFIG_SYS_PCI_MASTER_INIT. Also I noticed that some ppc4xx have PCI_HOST_ADAPTER defined, but this is not defined in the Katmai config file. Should I define it and define CONFIG_PCI_HOST to it? Any comments are greatly appreciated. Thanks.

On Thursday 10 September 2009 21:01:57 dbrazeau wrote:
I'm trying to get my ppc440spe (Katmai) board to initialize in PCI adapter mode. I was hoping that someone could give me some pointers on what changes I need in the katmai config file, i.e. do I need to define CONFIG_SYS_PCI_MASTER_INIT. Also I noticed that some ppc4xx have PCI_HOST_ADAPTER defined, but this is not defined in the Katmai config file. Should I define it and define CONFIG_PCI_HOST to it? Any comments are greatly appreciated. Thanks.
I don't know of any 440SPe based board used in PCI adapter mode. But you could probably check the esd PMC440 board. This is a PPC440EPx based PMC module which can be configured/built either as PCI host or as PCI adapter.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

Dear dbrazeau,
In message 25389144.post@talk.nabble.com you wrote:
I'm trying to get my ppc440spe (Katmai) board to initialize in PCI adapter mode. I was hoping that someone could give me some pointers on what changes
You are really talking about the PCI-X port on the Katmai board, are you? You don't by any chance mean PCIe?
Best regards,
Wolfgang Denk

Yes, I do mean PCIe. Sorry should have mentioned that.
wd wrote:
Dear dbrazeau,
In message 25389144.post@talk.nabble.com you wrote:
I'm trying to get my ppc440spe (Katmai) board to initialize in PCI adapter mode. I was hoping that someone could give me some pointers on what changes
You are really talking about the PCI-X port on the Katmai board, are you? You don't by any chance mean PCIe?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Never underestimate the bandwidth of a station wagon full of tapes. -- Dr. Warren Jackson, Director, UTCS _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Dear dbrazeau,
please do not top-post / full quote. Make sure to read http://www.netmeister.org/news/learn2quote.html
In message 25438442.post@talk.nabble.com you wrote:
Yes, I do mean PCIe. Sorry should have mentioned that.
Well, in this case...
In message 25389144.post@talk.nabble.com you wrote:
I'm trying to get my ppc440spe (Katmai) board to initialize in PCI adapter mode. I was hoping that someone could give me some pointers on what changes
...you should also make sure to use right terminology. "Adapter mode" is a PCI (and PCI-X) related term, but is not used with PCI-e.
With PCI-e, we are talking about "root" versus "end point" mode, and you do not have to implement any changes for this. You only have to set the "pcie_mode" environment variable correctly.
Please see this commit message for a description:
commit d4cb2d17946466740afeb195a57d6cb290bf4cc0 Author: Stefan Roese sr@denx.de Date: Sat Oct 13 16:43:23 2007 +0200
ppc4xx: Dynamic configuration of 4xx PCIe mode as root or endpoint mode
This patch adds support for dynamic configuration of PCIe ports for the AMCC PPC4xx boards equipped with PCIe interfaces. These are the PPC440SPe boards Yucca & Katmai and the 405EX board Kilauea.
This dynamic configuration is done via the "pcie_mode" environement variable. This variable can be set to "EP" or "RP" for endpoint or rootpoint mode. Multiple values can be joined via the ":" delimiter. Here an example:
pcie_mode=RP:EP:EP
This way, PCIe port 0 will be configured as rootpoint, PCIe port 1 and 2 as endpoint.
Per default Yucca will be configured as: pcie_mode=RP:EP:EP
Per default Katmai will be configured as: pcie_mode=RP:RP:REP
Per default Kilauea will be configured as: pcie_mode=RP:RP
Signed-off-by: Tirumala R Marri tmarri@amcc.com Signed-off-by: Stefan Roese sr@denx.de
Sorry that this is not documented properly - Stefan, can you please add at least some description to the README?
Best regards,
Wolfgang Denk
participants (3)
-
dbrazeau
-
Stefan Roese
-
Wolfgang Denk