diff options
author | Peter Pearse <peter.pearse@arm.com> | 2007-09-07 13:26:51 +0100 |
---|---|---|
committer | Peter Pearse <peter.pearse@arm.com> | 2007-09-07 13:26:51 +0100 |
commit | 470ffef72cf565c4db59352c23bd06cbfb763128 (patch) | |
tree | 8f175868f568e7f535436407f72f56198928ea7e /board/freescale/mpc8641hpcn/mpc8641hpcn.c | |
parent | 80767a6cead9990d9e77e62be947843c2c72f469 (diff) | |
parent | a89cbbd27a60e6740772000fd0688ffba1c2576a (diff) | |
download | u-boot-imx-470ffef72cf565c4db59352c23bd06cbfb763128.zip u-boot-imx-470ffef72cf565c4db59352c23bd06cbfb763128.tar.gz u-boot-imx-470ffef72cf565c4db59352c23bd06cbfb763128.tar.bz2 |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'board/freescale/mpc8641hpcn/mpc8641hpcn.c')
-rw-r--r-- | board/freescale/mpc8641hpcn/mpc8641hpcn.c | 16 |
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 |