From: Jon Loeliger Date: Thu, 02 Aug 2007 11:42:47 -0500 Subject: [U-Boot-Users] [PATCH] Make MPC8641's PCI/PCI-E driver a common driver for many FSL parts. In-Reply-To: <1184779212.3855.31.camel@ld0161-tx32> References: <1184779212.3855.31.camel@ld0161-tx32> Message-ID: <1186072967.20393.2.camel@ld0161-tx32> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 2007-07-18 at 12:20, Jon Loeliger wrote: > From: Ed Swarthout > > All of the PCI/PCI-Express driver and initialization code that > was in the MPC8641HPCN port has now been moved into the common > drivers/fsl_pci_init.c. In a subsequent patch, this will be > utilized by the 85xx ports as well. > > Common PCI-E IMMAP register blocks for FSL 85xx/86xx are added. > > Also enable the second PCI-Express controller on 8641 > by getting its BATS and CFG_ setup right. > > Signed-off-by: Ed Swarthout > Signed-off-by: Zhang Wei > Signed-off-by: Jon Loeliger > --- > > Wolfgang, > > Please apply this to the testing repository as it depends on > my previous PCI/PCI-E changes already applied there. I have > built and tested this on the 8641 from u-boot-testing. > > Thanks, > jdl > > > board/mpc8641hpcn/mpc8641hpcn.c | 161 ++++++++++++++++++++++++------- > board/mpc8641hpcn/u-boot.lds | 1 - > cpu/mpc86xx/Makefile | 3 +- > cpu/mpc86xx/pci.c | 146 ---------------------------- > cpu/mpc86xx/pcie_indirect.c | 199 --------------------------------------- > drivers/Makefile | 2 +- > drivers/fsl_pci_init.c | 176 ++++++++++++++++++++++++++++++++++ > include/asm-ppc/immap_fsl_pci.h | 150 +++++++++++++++++++++++++++++ > include/configs/MPC8641HPCN.h | 41 +++++---- > include/pci.h | 6 + > 10 files changed, 482 insertions(+), 403 deletions(-) > delete mode 100644 cpu/mpc86xx/pci.c > delete mode 100644 cpu/mpc86xx/pcie_indirect.c > create mode 100644 drivers/fsl_pci_init.c > create mode 100644 include/asm-ppc/immap_fsl_pci.h Wolfgang, I will rebase this patch to current top of u-boot-testing.git and repost it for you. It will take into account the minor cleanups that you recently posted for the 8641 HPCN board. I would send these via the -mpc86xx repo, except that they are dependent upon the patches already in the -testing repository! There is a follow-up 85xx PCI patch series that I will press Andy Fleming into posting as well has his followup TSEC cleanup patches! Thanks, jdl