Skip to contentSkip to conversation

configure ppc440spe as pci adapter

U-Boot dbrazeau 3 participants 5 messages Sep 10, 2009 – Sep 14, 2009

lore
Share & tools
lore

dbrazeau

author
#0 lore raw

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.

Signature · 2 lines
View this message in context: http://www.nabble.com/configure-ppc440spe-as-pci-adapter-tp25389144p25389144.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 7 lines · 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 at denx.de

#2 lore raw
In reply to dbrazeau

Dear dbrazeau,

Quoted 3 lines · In message <[email protected]> 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

Signature · 5 lines
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 at denx.de
Never underestimate the bandwidth of a station wagon full of tapes.
                                -- Dr. Warren Jackson, Director, UTCS
author
#3 lore raw

Yes, I do mean PCIe. Sorry should have mentioned that.

Quoted 29 lines · wd

Dear dbrazeau,

Quoted 5 lines · In message <[email protected]> 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

Signature · 9 lines
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 at denx.de
Never underestimate the bandwidth of a station wagon full of tapes.
                                -- Dr. Warren Jackson, Director, UTCS
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
View this message in context: http://www.nabble.com/configure-ppc440spe-as-pci-adapter-tp25389144p25438442.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#4 lore raw

Dear dbrazeau,

please do not top-post / full quote. Make sure to read
http://www.netmeister.org/news/learn2quote.html

Quoted 2 lines · In message <[email protected]> you wrote:

Yes, I do mean PCIe. Sorry should have mentioned that.

Well, in this case...

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines · In message <[email protected]> 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 <[email protected]>
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

Sorry that this is not documented properly - Stefan, can you please add at least some description to the README?

Best regards,

Wolfgang Denk

Signature · 4 lines
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 at denx.de
It is your destiny.                                     - Darth Vader