[U-Boot-Users] [PATCH] Make MPC8641's PCI/PCI-E driver a common driver for many FSL parts.

Jon Loeliger jdl at freescale.com
Thu Aug 2 18:42:47 CEST 2007


On Wed, 2007-07-18 at 12:20, Jon Loeliger wrote:
> From: Ed Swarthout <Ed.Swarthout at freescale.com>
> 
> 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 <Ed.Swarthout at freescale.com>
> Signed-off-by: Zhang Wei <wei.zhang at freescale.com>
> Signed-off-by: Jon Loeliger <jdl at freescale.com>
> ---
> 
> 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






More information about the U-Boot mailing list