summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8641hpcn/mpc8641hpcn.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-09-07 00:15:04 +0200
committerWolfgang Denk <wd@denx.de>2007-09-07 00:15:04 +0200
commit3dd42fd5e2169f6d0be3523ae2bc99da8ff55e49 (patch)
tree6976940042062059a583edd1f631976e90545a57 /board/freescale/mpc8641hpcn/mpc8641hpcn.c
parent5b729fb3bd98f49855d6bfc657c3fbae95f2adc2 (diff)
parent56a9270521baaa00e12639a978302a67f61ef060 (diff)
downloadu-boot-imx-3dd42fd5e2169f6d0be3523ae2bc99da8ff55e49.zip
u-boot-imx-3dd42fd5e2169f6d0be3523ae2bc99da8ff55e49.tar.gz
u-boot-imx-3dd42fd5e2169f6d0be3523ae2bc99da8ff55e49.tar.bz2
Merge with /home/wd/git/u-boot/custodian/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/mpc8641hpcn/mpc8641hpcn.c')
-rw-r--r--board/freescale/mpc8641hpcn/mpc8641hpcn.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index ffd11cb..931be9f 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -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