diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-02-09 22:03:05 -0600 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2009-02-16 18:05:52 -0600 |
commit | ad97dce18445ff05bf326094e691a01aa95aa8dc (patch) | |
tree | 6c18b3be9ba522f846855db13da534640844bebe /board/freescale/mpc8572ds/mpc8572ds.c | |
parent | f8523cb0815b2d3d2d780b7d49ca614105555f58 (diff) | |
download | u-boot-imx-ad97dce18445ff05bf326094e691a01aa95aa8dc.zip u-boot-imx-ad97dce18445ff05bf326094e691a01aa95aa8dc.tar.gz u-boot-imx-ad97dce18445ff05bf326094e691a01aa95aa8dc.tar.bz2 |
85xx: Fix address map for 36-bit config of MPC8572DS
When we introduced the 36-bit config of the MPC8572DS board we had the
wrong PCI MEM bus address map. Additionally, the change to the address
map exposes a small issue in our dummy read on the ULI bus. We need
to use the new mapping functions to handle that read properly in the
36-bit config.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8572ds/mpc8572ds.c')
-rw-r--r-- | board/freescale/mpc8572ds/mpc8572ds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c index e57f9ff..d7e9f2f 100644 --- a/board/freescale/mpc8572ds/mpc8572ds.c +++ b/board/freescale/mpc8572ds/mpc8572ds.c @@ -216,8 +216,10 @@ void pci_init_board(void) pci_hose_read_config_dword(hose, PCI_BDF(2, 0x1d, 0 ), PCI_BASE_ADDRESS_1, &temp32); if (temp32 >= CONFIG_SYS_PCIE3_MEM_BUS) { - debug(" uli1572 read to %x\n", temp32); - in_be32((unsigned *)temp32); + void *p = pci_mem_to_virt(PCI_BDF(2, 0x1d, 0), + temp32, 4, 0); + debug(" uli1572 read to %p\n", p); + in_be32(p); } } else { printf (" PCIE3: disabled\n"); |