[U-Boot] configure ppc440spe as pci adapter

Wolfgang Denk wd at denx.de
Tue Sep 15 00:47:01 CEST 2009


Dear dbrazeau,


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


In message <25438442.post at talk.nabble.com> you wrote:
> 
> Yes, I do mean PCIe.  Sorry should have mentioned that.

Well, in this case...

> > In message <25389144.post at 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 at 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 at amcc.com>
    Signed-off-by: Stefan Roese <sr at 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

-- 
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


More information about the U-Boot mailing list