]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ft_board_setup update 85xx/86xx of pci/pcie bus-range property.
authorEd Swarthout <Ed.Swarthout@freescale.com>
Thu, 30 Aug 2007 06:58:48 +0000 (01:58 -0500)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Tue, 4 Sep 2007 21:00:41 +0000 (16:00 -0500)
pcie is now differentiated from pci.  Add 8641 bus-range updates.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
board/cds/mpc8548cds/mpc8548cds.c
board/freescale/mpc8544ds/mpc8544ds.c
board/freescale/mpc8641hpcn/mpc8641hpcn.c

index 796ae22a6915a95d97e3de374d0d47a7f0ea1722..36d7e1ed487b0a1865d96e61bcd2330be1e1fa81 100644 (file)
@@ -542,7 +542,7 @@ ft_pci_setup(void *blob, bd_t *bd)
 #endif
 
 #ifdef CONFIG_PCIE1
-       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@a000/bus-range", &len);
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@a000/bus-range", &len);
        if (p != NULL) {
                p[0] = 0;
                p[1] = pcie1_hose.last_busno - pcie1_hose.first_busno;
index 80822bec73715169e20cf1a3d7ca9570fb04caa8..4c3b27f23898fe0cd8fd98e63854c7ad9e1eba34 100644 (file)
@@ -516,8 +516,16 @@ ft_board_setup(void *blob, bd_t *bd)
                *p++ = cpu_to_be32(bd->bi_memstart);
                *p = cpu_to_be32(bd->bi_memsize);
        }
+#ifdef CONFIG_PCI1
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@8000/bus-range", &len);
+       if (p != NULL) {
+               p[0] = 0;
+               p[1] = pci1_hose.last_busno - pci1_hose.first_busno;
+               debug("PCI@8000 first_busno=%d last_busno=%d\n",p[0],p[1]);
+       }
+#endif
 #ifdef CONFIG_PCIE1
-       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@a000/bus-range", &len);
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@a000/bus-range", &len);
        if (p != NULL) {
                p[0] = 0;
                p[1] = pcie1_hose.last_busno - pcie1_hose.first_busno;
@@ -525,7 +533,7 @@ ft_board_setup(void *blob, bd_t *bd)
        }
 #endif
 #ifdef CONFIG_PCIE2
-       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@9000/bus-range", &len);
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@9000/bus-range", &len);
        if (p != NULL) {
                p[0] = 0;
                p[1] = pcie2_hose.last_busno - pcie2_hose.first_busno;
@@ -533,7 +541,7 @@ ft_board_setup(void *blob, bd_t *bd)
        }
 #endif
 #ifdef CONFIG_PCIE3
-       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pci@b000/bus-range", &len);
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@b000/bus-range", &len);
        if (p != NULL) {
                p[0] = 0;
                p[1] = pcie3_hose.last_busno - pcie3_hose.first_busno;;
index ffd11cb5f1384e2a6e428cc7f393ccc4b795fdf5..931be9f375e946f5db416db438ece824f8bd6bbc 100644 (file)
@@ -338,6 +338,22 @@ ft_board_setup(void *blob, bd_t *bd)
                *p++ = cpu_to_be32(bd->bi_memstart);
                *p = cpu_to_be32(bd->bi_memsize);
        }
+#ifdef CONFIG_PCI1
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@8000/bus-range", &len);
+       if (p != NULL) {
+               p[0] = 0;
+               p[1] = pci1_hose.last_busno - pci1_hose.first_busno;
+               debug("PCI@8000 first_busno=%d last_busno=%d\n",p[0],p[1]);
+       }
+#endif
+#ifdef CONFIG_PCI2
+       p = (u32 *)ft_get_prop(blob, "/" OF_SOC "/pcie@9000/bus-range", &len);
+       if (p != NULL) {
+               p[0] = 0;
+               p[1] = pci2_hose.last_busno - pci2_hose.first_busno;
+               debug("PCI@9000 first_busno=%d last_busno=%d\n",p[0],p[1]);
+       }
+#endif
 }
 #endif