]> git.sur5r.net Git - u-boot/commitdiff
PCIE2 and PCIE3 are decided by corresponing bit in devdisr instead of PCIE1 bit
authorRoy Zang <tie-fei.zang@freescale.com>
Fri, 9 Jan 2009 08:01:52 +0000 (16:01 +0800)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Tue, 13 Jan 2009 22:32:52 +0000 (16:32 -0600)
PCIE2 and PCIE3 should be decided by corresponing bit in devdisr instead of
PCIE1 bit.
On MPC8572DS board, PCIE refers to PCIE1.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
board/freescale/mpc8572ds/mpc8572ds.c

index 4733b82f0558a278a1a598c4cf4e7d7fb61f0e73..c2487e5b844794e524bc613f8631264d91818268 100644 (file)
@@ -170,7 +170,7 @@ void pci_init_board(void)
                struct pci_region *r = hose->regions;
                u32 temp32;
 
-               if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE)){
+               if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE3)){
                        printf ("\n    PCIE3 connected to ULI as %s (base address %x)",
                                        pcie_ep ? "End Point" : "Root Complex",
                                        (uint)pci);
@@ -237,7 +237,7 @@ void pci_init_board(void)
                int pcie_configured  = (io_sel == 0x3) || (io_sel == 0x7);
                struct pci_region *r = hose->regions;
 
-               if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE)){
+               if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE2)){
                        printf ("\n    PCIE2 connected to Slot 1 as %s (base address %x)",
                                        pcie_ep ? "End Point" : "Root Complex",
                                        (uint)pci);