u-boot-brain/drivers/pci
Kumar Gala ad19e7a5d2 pci/fsl_pci_init: Rework PCI ATMU setup to handle >4G of memory
The old PCI ATMU setup code would just mimic the PCI regions into the
ATMU registers.  For simple memory maps in which all memory, MMIO, etc
space fit into 4G this works ok.  However there are issues with we have
>4G of memory as we know can't access all of memory and we need to
ensure that PCICSRBAR (PEXCSRBAR on PCIe) isn't overlapping with
anything since we can't turn it off.

We first setup outbound windows based on what the board code setup
in the pci regions for MMIO and IO access.  Next we place PCICSRBAR
below the MMIO window.  After which we try to setup the inbound windows
to map as much of memory as possible.

On PCIe based controllers we are able to overmap the ATMU setup since
RX & TX links are separate but report the proper amount of inbound
address space to the region tracking to ensure there is no overlap.

On PCI based controllers we use as many inbound windows as available to
map as much of the memory as possible.

Additionally we changed all the CCSR register access to use proper IO
accessor functions.  Also had to add CONFIG_SYS_CCSRBAR_PHYS to some
86xx platforms that didn't have it defined.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-08-28 17:12:36 -05:00
..
fsl_pci_init.c pci/fsl_pci_init: Rework PCI ATMU setup to handle >4G of memory 2009-08-28 17:12:36 -05:00
Makefile ixp: move pci drivers to drivers/pci 2009-01-31 10:16:01 +01:00
pci_auto.c mpc83xx: Add esd VME8349 board support 2009-07-27 18:36:36 -05:00
pci_indirect.c drivers/pci: Move conditional compilation to Makefile 2008-08-13 01:40:40 +02:00
pci_ixp.c pci: Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY for clarity 2009-02-07 23:50:04 +01:00
pci_sh4.c sh: Add system memory registration to PCI for SH4 2009-03-12 23:58:30 +09:00
pci_sh7751.c sh: r2dplus fix register access 2008-12-10 23:11:36 +09:00
pci_sh7780.c sh: Add some register value configurable to PCI of SH7780 2009-03-12 23:58:30 +09:00
pci.c PCI: Add pci_last_busno() helper 2009-02-23 15:51:10 -06:00
tsi108_pci.c pci: Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY for clarity 2009-02-07 23:50:04 +01:00
w83c553f.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00