]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: Dynamic configuration of 4xx PCIe mode as root or endpoint mode
authorStefan Roese <sr@denx.de>
Sat, 13 Oct 2007 14:43:23 +0000 (16:43 +0200)
committerStefan Roese <sr@denx.de>
Wed, 31 Oct 2007 20:20:50 +0000 (21:20 +0100)
commitd4cb2d17946466740afeb195a57d6cb290bf4cc0
tree81e5eee8d2e12c4714cd7ff213696b1a3b8f74ef
parentfd671802b67a0ef37a06124fa2ce85f00aa22c6f
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>
board/amcc/katmai/katmai.c
board/amcc/kilauea/kilauea.c
board/amcc/yucca/yucca.c
cpu/ppc4xx/4xx_pcie.c
include/asm-ppc/4xx_pcie.h
include/configs/katmai.h
include/configs/kilauea.h
include/configs/yucca.h