[U-Boot] [PATCH 00/11] Allow PCI bus address, PA, and VA to differ

Becky Bruce beckyb at kernel.crashing.org
Thu Dec 4 06:04:36 CET 2008


This patch series cleans up much of for VA/PA/PCI bus address confusion
that is is currently causing a couple of problems on the 8641 36-bit
port, and was preventing us from having a PCI mem bus address that
differed from the virtual address of the region.

I have fixed a number of problems, from the ahci driver directly using
the pci BAR setting as a virtual address, to the CFI flash driver
inconsistently treating flash_info->start as a physical address or virtual
address, to pci window mapping overlap.

We also now require support for Kumar's new CONFIG_ADDR_MAP code,
which I have added - his patches will need to be applied before these;
some of these patches are actually fixes to that code.  I ended up doing
some cleanup to the BAT defines as I was implementing this capability.

Here's the diffstat:
board/alaska/alaska.c                     |   36 +++++++-------
board/etin/debris/flash.c                 |    1 +
board/etin/kvme080/kvme080.c              |    1 +
board/freescale/mpc8641hpcn/mpc8641hpcn.c |   22 ++++----
cpu/mpc85xx/tlb.c                         |    4 +-
cpu/mpc86xx/cpu_init.c                    |   27 +++++++++++
drivers/block/ahci.c                      |    7 +--
drivers/mtd/cfi_flash.c                   |   53 +++++++++-----------
drivers/pci/pci.c                         |   19 ++++++++
include/74xx_7xx.h                        |   37 ---------------
include/addr_map.h                        |    2 +-
include/asm-ppc/e300.h                    |   35 --------------
include/asm-ppc/io.h                      |    2 +-
include/asm-ppc/mmu.h                     |   73 ++++++++++++++++++++++------
include/configs/MPC8641HPCN.h             |   30 +++++++++---
include/flash.h                           |    2 +-
include/mpc824x.h                         |   39 ---------------
include/mpc86xx.h                         |   41 ----------------
include/pci.h                             |   28 +++++++++--
lib_generic/addr_map.c                    |    4 +-
lib_ppc/bat_rw.c                          |   28 +++++++++++
lib_ppc/board.c                           |    2 +-
22 files changed, 243 insertions(+), 250 deletions(-)

I am submitting this as a series, because these are required, in this
order, for MPC8641HPCN to continue to build and boot.  I am aware that I've
changed files that belong to a number of maintainers; I'm not sure how we want
to handle this.

Cheers,
Becky


More information about the U-Boot mailing list