summaryrefslogtreecommitdiff
path: root/board/cds/common/ft_board.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-11-01 22:55:23 +0100
committerWolfgang Denk <wd@denx.de>2007-11-01 22:55:23 +0100
commit5b746c3ea8c72035621435853d5b5278af0a1011 (patch)
tree87dfb1bbd090602c1e715f25d40b303021d69bf7 /board/cds/common/ft_board.c
parentb31f64343ead9482cd439b1adbe4c34026a641b1 (diff)
parent2fa0dd158c0a3faa6e481169c097e8d7fe662581 (diff)
downloadu-boot-imx-5b746c3ea8c72035621435853d5b5278af0a1011.zip
u-boot-imx-5b746c3ea8c72035621435853d5b5278af0a1011.tar.gz
u-boot-imx-5b746c3ea8c72035621435853d5b5278af0a1011.tar.bz2
Merge branch 'master' of /home/wd/git/u-boot/custodians
Diffstat (limited to 'board/cds/common/ft_board.c')
-rw-r--r--board/cds/common/ft_board.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/board/cds/common/ft_board.c b/board/cds/common/ft_board.c
index 9d97905..3eda100 100644
--- a/board/cds/common/ft_board.c
+++ b/board/cds/common/ft_board.c
@@ -37,17 +37,24 @@ static void cds_pci_fixup(void *blob)
map = ft_get_prop(blob, "/" OF_SOC "/pci@8000/interrupt-map", &len);
- len /= sizeof(u32);
+ if (!map)
+ map = ft_get_prop(blob, "/" OF_PCI "/interrupt-map", &len);
- slot = get_pci_slot();
+ if (map) {
+ len /= sizeof(u32);
- for (i=0;i<len;i+=7) {
- /* We rotate the interrupt pins so that the mapping
- * changes depending on the slot the carrier card is in.
- */
- map[3] = ((map[3] + slot - 2) % 4) + 1;
+ slot = get_pci_slot();
- map+=7;
+ for (i=0;i<len;i+=7) {
+ /* We rotate the interrupt pins so that the mapping
+ * changes depending on the slot the carrier card is in.
+ */
+ map[3] = ((map[3] + slot - 2) % 4) + 1;
+
+ map+=7;
+ }
+ } else {
+ printf("*** Warning - No PCI node found\n");
}
}
#endif