]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc7448hpc2: Fix PCI I/O space mapping.
authorRandy Vinson <rvinson@mvista.com>
Wed, 13 Aug 2008 18:44:57 +0000 (11:44 -0700)
committerWolfgang Denk <wd@denx.de>
Tue, 26 Aug 2008 21:23:49 +0000 (23:23 +0200)
PCI I/O space is currently mapped 1:1 at 0xFA000000. Linux requires
PCI I/O space to start at 0 on the PCI bus. This patch maps PCI I/O
space such that 0xFA000000 in the processor's address space maps to 0
on the PCI I/O bus.

Signed-off-by Randy Vinson <rvinson@mvista.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
board/freescale/mpc7448hpc2/tsi108_init.c

index ad80694077691b9d9d3dc86445b4b4fd2ea9be0b..9c40b72a18bfa207355258d38d33e2873710a676 100644 (file)
@@ -79,7 +79,7 @@ PB2OCN_LUT_ENTRY pb2ocn_lut1[32] = {
        /* 24 - 31 */
        {0x00000000, 0x00000201}, /* PBA=0xF800_0000 -> PCI/X (Byte-Swap) */
        {0x00000000, 0x00000201}, /* PBA=0xF900_0000 -> PCI/X (Byte-Swap) */
-       {0x00000000, 0x00000201}, /* PBA=0xFA00_0000 -> PCI/X  PCI I/O (Byte-Swap) */
+       {0x00000000, 0x00000241}, /* PBA=0xFA00_0000 -> PCI/X  PCI I/O (Byte-Swap + Translate) */
        {0x00000000, 0x00000201}, /* PBA=0xFB00_0000 -> PCI/X  PCI Config (Byte-Swap) */
 
        {0x00000000, 0x02000240}, /* PBA=0xFC00_0000 -> HLP */
@@ -380,7 +380,7 @@ int board_early_init_r (void)
         */
 
        out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO,
-               0xFA000001);
+               0x00000001);
        __asm__ __volatile__ ("sync");
 
        /*