]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
drivers/pci/layerscape: Add EP mode support
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Fri, 10 Jul 2015 03:35:09 +0000 (11:35 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:48 +0000 (08:00 +0200)
commit2339ac8d7ea14cb82339e3fd3ddebddf37426af7
tree3afa73bfca4a65815fb790c8c47c0cd15bef3d4f
parent73a444935db0a07f360041412e3b78472ecb5115
drivers/pci/layerscape: Add EP mode support

The patch will initialize PCIe controller on EP mode
1. Setup bar:
   bar0 32bit 4K for specific configuration
   bar1 32bit 8K for MSIX
   bar2 64bit 4K for descriptor of memory
   bar4 64bit 1M for DMA memory test
2. Setup iATU:
   iATU inbound 0-3 to map bar transaction to memory address
   started at CONFIG_SYS_PCI_EP_MEMORY_BASE
   iATU outbound 0 to map 4G memory space

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/pci/pcie_layerscape.c