]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/fsl-pci: Add generic code to setup PCIe controllers
authorKumar Gala <galak@kernel.crashing.org>
Wed, 15 Dec 2010 20:21:41 +0000 (14:21 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Jan 2011 07:32:19 +0000 (01:32 -0600)
commita4aafcc990c12816cfd4644e5c003d8556b6236b
tree3b707b93bce69d27da88dfd89bd5887494b807ce
parent3a0e3c27a50e395a59497e8bd60a00404e662eb1
powerpc/fsl-pci: Add generic code to setup PCIe controllers

Since all the PCIe controllers are connected over SERDES on the SoCs we
can utilize is_serdes_configured() to determine if a controller is
enabled.  After which we can setup the ATMUs and LAWs for the controller
in a common fashion and allow board code to specify what the controller
is connected to for reporting reasons.

We also provide a per controller (rather than all) for some systems that
may have special requirements.

Finally, we refactor the code used by the P1022DS to utilize the new
generic code.

Based on patch by: Li Yang <leoli@freescale.com>

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/fsl_pci.h
board/freescale/p1022ds/p1022ds.c
drivers/pci/fsl_pci_init.c